summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetTransformInfo.h
diff options
context:
space:
mode:
authorEvgeny Stupachenko <evstupac@gmail.com>2017-08-07 19:56:34 +0000
committerEvgeny Stupachenko <evstupac@gmail.com>2017-08-07 19:56:34 +0000
commitc675290680d7be4408142c8d74e37e974eef35f2 (patch)
treece4326f6c794942696ca4fd8f57e580517875014 /llvm/lib/Target/X86/X86TargetTransformInfo.h
parent428f0fe910454884c6e1119c9e9944f824973e1a (diff)
downloadbcm5719-llvm-c675290680d7be4408142c8d74e37e974eef35f2.tar.gz
bcm5719-llvm-c675290680d7be4408142c8d74e37e974eef35f2.zip
Reapply fix PR23384 (part 3 of 3) r304824 (was reverted in r305720).
The root cause of reverting was fixed - PR33514. 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> <evgeny.v.stupachenko@intel.com> llvm-svn: 310289
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetTransformInfo.h')
-rw-r--r--llvm/lib/Target/X86/X86TargetTransformInfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86TargetTransformInfo.h b/llvm/lib/Target/X86/X86TargetTransformInfo.h
index dea4ab752d6..fc63eff049d 100644
--- a/llvm/lib/Target/X86/X86TargetTransformInfo.h
+++ b/llvm/lib/Target/X86/X86TargetTransformInfo.h
@@ -105,6 +105,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);
OpenPOWER on IntegriCloud