]> granicus.if.org Git - llvm/commit
Reapply fix PR23384 (part 3 of 3) r304824 (was reverted in r305720).
authorEvgeny Stupachenko <evstupac@gmail.com>
Mon, 7 Aug 2017 19:56:34 +0000 (19:56 +0000)
committerEvgeny Stupachenko <evstupac@gmail.com>
Mon, 7 Aug 2017 19:56:34 +0000 (19:56 +0000)
commitb6ff06ef35af98e150763d170b6687ae79df4092
tree4443ee72ddbc1f1785735565f081e4df2154081d
parent45ff2ea308c8fa179c36f9405e34413c499ec00d
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>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310289 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
lib/Target/X86/X86TargetTransformInfo.cpp
lib/Target/X86/X86TargetTransformInfo.h
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/SystemZ/loop-01.ll
test/CodeGen/X86/2006-05-11-InstrSched.ll
test/CodeGen/X86/atom-fixup-lea3.ll
test/CodeGen/X86/full-lsr.ll
test/CodeGen/X86/hoist-spill.ll
test/CodeGen/X86/loop-strength-reduce4.ll
test/CodeGen/X86/madd.ll
test/CodeGen/X86/masked-iv-safe.ll
test/Transforms/LoopStrengthReduce/X86/canonical.ll
test/Transforms/LoopStrengthReduce/X86/ivchain-X86.ll
test/Transforms/LoopStrengthReduce/X86/lsr-expand-quadratic.ll
test/Transforms/LoopStrengthReduce/X86/lsr-insns-1.ll
test/Transforms/LoopStrengthReduce/X86/lsr-insns-2.ll
test/Transforms/LoopStrengthReduce/X86/nested-loop.ll