forked from OSchip/llvm-project
80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC80-cols; NFC
llvm-svn: 247700
This commit is contained in:
parent
f9b776350f
commit
e9434e80d1
|
@ -967,13 +967,14 @@ bool CallAnalyzer::analyzeBlock(BasicBlock *BB,
|
||||||
if (isa<ExtractElementInst>(I) || I->getType()->isVectorTy())
|
if (isa<ExtractElementInst>(I) || I->getType()->isVectorTy())
|
||||||
++NumVectorInstructions;
|
++NumVectorInstructions;
|
||||||
|
|
||||||
// If the instruction is floating point, and the target says this operation is
|
// If the instruction is floating point, and the target says this operation
|
||||||
// expensive or the function has the "use-soft-float" attribute, this may
|
// is expensive or the function has the "use-soft-float" attribute, this may
|
||||||
// eventually become a library call. Treat the cost as such.
|
// eventually become a library call. Treat the cost as such.
|
||||||
if (I->getType()->isFloatingPointTy()) {
|
if (I->getType()->isFloatingPointTy()) {
|
||||||
bool hasSoftFloatAttr = false;
|
bool hasSoftFloatAttr = false;
|
||||||
|
|
||||||
// If the function has the "use-soft-float" attribute, mark it as expensive.
|
// If the function has the "use-soft-float" attribute, mark it as
|
||||||
|
// expensive.
|
||||||
if (F.hasFnAttribute("use-soft-float")) {
|
if (F.hasFnAttribute("use-soft-float")) {
|
||||||
Attribute Attr = F.getFnAttribute("use-soft-float");
|
Attribute Attr = F.getFnAttribute("use-soft-float");
|
||||||
StringRef Val = Attr.getValueAsString();
|
StringRef Val = Attr.getValueAsString();
|
||||||
|
|
Loading…
Reference in New Issue