LSR: rewrite inner loops only.
authorAndrew Trick <atrick@apple.com>
Thu, 29 Sep 2011 01:33:38 +0000 (01:33 +0000)
committerAndrew Trick <atrick@apple.com>
Thu, 29 Sep 2011 01:33:38 +0000 (01:33 +0000)
commit0c01bc385a4c01bee012bda504c8ce0c3d402f2c
tree9b57d78a2b2d96043cf7ca24139ac4080e413fee
parent03b08764d2d1735c33710950be4207edc9b90fb2
LSR: rewrite inner loops only.

Rewriting the entire loop nest now requires -enable-lsr-nested.
See PR11035 for some performance data.
A few unit tests specifically test nested LSR, and are now under a flag.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140762 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/ARM/lsr-on-unrolled-loops.ll
test/CodeGen/X86/change-compare-stride-0.ll
test/CodeGen/X86/change-compare-stride-1.ll
test/CodeGen/X86/iv-users-in-other-loops.ll
test/CodeGen/X86/loop-strength-reduce3.ll
test/CodeGen/X86/pr3495.ll