diff options
author | Eli Friedman <efriedma@codeaurora.org> | 2017-12-22 02:08:08 +0000 |
---|---|---|
committer | Eli Friedman <efriedma@codeaurora.org> | 2017-12-22 02:08:08 +0000 |
commit | 39ed9a602bff45e86c9249d5139504b398bb4ef4 (patch) | |
tree | 5355c96d10ab486759bccab89fa89581cefc407d /llvm/lib/Target/ARM/ARMTargetTransformInfo.h | |
parent | a17f220590edc34b6c59c385c59312b3e9da524c (diff) | |
download | bcm5719-llvm-39ed9a602bff45e86c9249d5139504b398bb4ef4.tar.gz bcm5719-llvm-39ed9a602bff45e86c9249d5139504b398bb4ef4.zip |
[Inliner] Restrict soft-float inlining penalty.
The penalty is currently getting applied in a bunch of places where it
doesn't make sense, like bitcasts (which are free) and calls (which
were getting the call penalty applied twice). Instead, just apply the
penalty to binary operators and floating-point casts.
While I'm here, also fix getFPOpCost() to do the right thing in more
cases, so we don't have to dig into function attributes.
Differential Revision: https://reviews.llvm.org/D41522
llvm-svn: 321332
Diffstat (limited to 'llvm/lib/Target/ARM/ARMTargetTransformInfo.h')
-rw-r--r-- | llvm/lib/Target/ARM/ARMTargetTransformInfo.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetTransformInfo.h b/llvm/lib/Target/ARM/ARMTargetTransformInfo.h index 99353a3219a..cd9fa070902 100644 --- a/llvm/lib/Target/ARM/ARMTargetTransformInfo.h +++ b/llvm/lib/Target/ARM/ARMTargetTransformInfo.h @@ -156,8 +156,6 @@ public: int getAddressComputationCost(Type *Val, ScalarEvolution *SE, const SCEV *Ptr); - int getFPOpCost(Type *Ty); - int getArithmeticInstrCost( unsigned Opcode, Type *Ty, TTI::OperandValueKind Op1Info = TTI::OK_AnyValue, |