LSR IVChain improvement.
authorAndrew Trick <atrick@apple.com>
Sat, 9 Feb 2013 01:11:01 +0000 (01:11 +0000)
committerAndrew Trick <atrick@apple.com>
Sat, 9 Feb 2013 01:11:01 +0000 (01:11 +0000)
commit6050edfe3e66ac45dbfaee72422b332ecaabb2ae
tree7e44bf6339eb0e34aa0605599da8f468c58ea509
parent4fa57932c7b13ec42c563e33a2e40fd04194b64e
LSR IVChain improvement.

Handle chains in which the same offset is used for both loads and
stores to the same array.

Fixes rdar://11410078.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174789 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/Transforms/LoopStrengthReduce/ARM/ivchain-ARM.ll
test/Transforms/LoopStrengthReduce/X86/2011-12-04-loserreg.ll