mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-23 19:17:17 +00:00
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247700 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e28b43e1be
commit
433ffc1eb2
@ -967,13 +967,14 @@ bool CallAnalyzer::analyzeBlock(BasicBlock *BB,
|
||||
if (isa<ExtractElementInst>(I) || I->getType()->isVectorTy())
|
||||
++NumVectorInstructions;
|
||||
|
||||
// If the instruction is floating point, and the target says this operation is
|
||||
// expensive or the function has the "use-soft-float" attribute, this may
|
||||
// eventually become a library call. Treat the cost as such.
|
||||
// If the instruction is floating point, and the target says this operation
|
||||
// is expensive or the function has the "use-soft-float" attribute, this may
|
||||
// eventually become a library call. Treat the cost as such.
|
||||
if (I->getType()->isFloatingPointTy()) {
|
||||
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")) {
|
||||
Attribute Attr = F.getFnAttribute("use-soft-float");
|
||||
StringRef Val = Attr.getValueAsString();
|
||||
|
Loading…
x
Reference in New Issue
Block a user