[PATCH] D76434: [SCEV] Query for immediate cost in Expander

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 05:55:51 PDT 2020


samparker updated this revision to Diff 256260.
samparker added reviewers: dmgreen, uweigand.
samparker added a comment.

Rebased. Thanks for reverting rewriteLoopExitValues @lebedev.ri, but I'm still seeing value in this patch. I'm not seeing any changes when running the test suite on my X86 box, but for Arm's DSP suite this affects 42/166 benchmarks for Thumb1 and 30/166 for Thumb2. Out of those changes I'm seeing a 1.6% geomean improvement for both targets.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76434/new/

https://reviews.llvm.org/D76434

Files:
  llvm/lib/Analysis/ScalarEvolutionExpander.cpp
  llvm/test/Transforms/IndVarSimplify/ARM/indvar-unroll-imm-cost.ll
  llvm/test/Transforms/IndVarSimplify/X86/eliminate-trunc.ll
  llvm/test/Transforms/IndVarSimplify/X86/iv-widen.ll
  llvm/test/Transforms/IndVarSimplify/X86/loop-invariant-conditions.ll
  llvm/test/Transforms/IndVarSimplify/widen-loop-comp.ll
  llvm/test/Transforms/LoopUnroll/PowerPC/p8-unrolling-legalize-vectors.ll
  llvm/test/Transforms/LoopVectorize/X86/float-induction-x86.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76434.256260.patch
Type: text/x-patch
Size: 112797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200409/29a4c036/attachment-0001.bin>


More information about the llvm-commits mailing list