[PATCH] D27695: Add Instruction number to LSR cost model (PR23384)
Evgeny Stupachenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 12 18:07:14 PST 2016
evstupac created this revision.
evstupac added reviewers: qcolombet, hfinkel.
evstupac added subscribers: llvm-commits, Farhana, wmi, mzolotukhin.
evstupac set the repository for this revision to rL LLVM.
Herald added a subscriber: mehdi_amini.
Fix PR23384.
The patch do the following:
1. Add instructions number generated by a solution to LSR cost
2. Move LSR cost comparison to target part
3. Add new cross use generation for ICmpZero that ends with zero
One LIT test fails. However it should be fixed when https://reviews.llvm.org/D26367 is committed.
Performance improvement on x86:
spec2000
177.mesa on -O2 +3%
256.bzip2 on -Ofast -flto +1.5%
Repository:
rL LLVM
https://reviews.llvm.org/D27695
Files:
include/llvm/Analysis/TargetTransformInfo.h
include/llvm/Analysis/TargetTransformInfoImpl.h
include/llvm/CodeGen/BasicTTIImpl.h
lib/Analysis/TargetTransformInfo.cpp
lib/Target/X86/X86TargetTransformInfo.cpp
lib/Target/X86/X86TargetTransformInfo.h
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/X86/2006-05-11-InstrSched.ll
test/CodeGen/X86/atom-fixup-lea3.ll
test/CodeGen/X86/avoid_complex_am.ll
test/CodeGen/X86/compact-unwind.ll
test/CodeGen/X86/full-lsr.ll
test/CodeGen/X86/loop-strength-reduce4.ll
test/CodeGen/X86/masked-iv-safe.ll
test/CodeGen/X86/misched-matrix.ll
test/Transforms/LoopStrengthReduce/X86/ivchain-X86.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27695.81165.patch
Type: text/x-patch
Size: 29738 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161213/ab9d14f1/attachment.bin>
More information about the llvm-commits
mailing list