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)
commitc675290680d7be4408142c8d74e37e974eef35f2
treece4326f6c794942696ca4fd8f57e580517875014
parent428f0fe910454884c6e1119c9e9944f824973e1a
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
17 files changed:
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/lib/Target/X86/X86TargetTransformInfo.h
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
llvm/test/CodeGen/SystemZ/loop-01.ll
llvm/test/CodeGen/X86/2006-05-11-InstrSched.ll
llvm/test/CodeGen/X86/atom-fixup-lea3.ll
llvm/test/CodeGen/X86/full-lsr.ll
llvm/test/CodeGen/X86/hoist-spill.ll
llvm/test/CodeGen/X86/loop-strength-reduce4.ll
llvm/test/CodeGen/X86/madd.ll
llvm/test/CodeGen/X86/masked-iv-safe.ll
llvm/test/Transforms/LoopStrengthReduce/X86/canonical.ll
llvm/test/Transforms/LoopStrengthReduce/X86/ivchain-X86.ll
llvm/test/Transforms/LoopStrengthReduce/X86/lsr-expand-quadratic.ll
llvm/test/Transforms/LoopStrengthReduce/X86/lsr-insns-1.ll
llvm/test/Transforms/LoopStrengthReduce/X86/lsr-insns-2.ll
llvm/test/Transforms/LoopStrengthReduce/X86/nested-loop.ll