diff options
author | Evgeny Stupachenko <evstupac@gmail.com> | 2017-06-06 20:04:16 +0000 |
---|---|---|
committer | Evgeny Stupachenko <evstupac@gmail.com> | 2017-06-06 20:04:16 +0000 |
commit | 3b88291581c1d79aeb0b2aca8f55dfc4b4c7460c (patch) | |
tree | 2a2e957278f1712ac3c8a18358d2f8adeb8956e0 /llvm/lib/Target/X86/X86TargetTransformInfo.h | |
parent | 4d4cd8bb97a252dabe5734e97e0337d408f6649a (diff) | |
download | bcm5719-llvm-3b88291581c1d79aeb0b2aca8f55dfc4b4c7460c.tar.gz bcm5719-llvm-3b88291581c1d79aeb0b2aca8f55dfc4b4c7460c.zip |
Fix PR23384 (part 3 of 3)
Summary:
The patch makes instruction count the highest priority for
LSR solution for X86 (previously registers had highest priority).
Reviewers: qcolombet
Differential Revision: http://reviews.llvm.org/D30562
From: Evgeny Stupachenko <evstupac@gmail.com>
llvm-svn: 304824
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetTransformInfo.h')
-rw-r--r-- | llvm/lib/Target/X86/X86TargetTransformInfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86TargetTransformInfo.h b/llvm/lib/Target/X86/X86TargetTransformInfo.h index b907b7556a1..09ce2c90498 100644 --- a/llvm/lib/Target/X86/X86TargetTransformInfo.h +++ b/llvm/lib/Target/X86/X86TargetTransformInfo.h @@ -101,6 +101,8 @@ public: int getIntImmCost(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty); int getIntImmCost(Intrinsic::ID IID, unsigned Idx, const APInt &Imm, Type *Ty); + bool isLSRCostLess(TargetTransformInfo::LSRCost &C1, + TargetTransformInfo::LSRCost &C2); bool isLegalMaskedLoad(Type *DataType); bool isLegalMaskedStore(Type *DataType); bool isLegalMaskedGather(Type *DataType); |