Do not fold ADD / SUB into load / store (to form pre-indexed, post-indexed
authorEvan Cheng <evan.cheng@apple.com>
Tue, 7 Feb 2012 07:09:28 +0000 (07:09 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 7 Feb 2012 07:09:28 +0000 (07:09 +0000)
commit4ee1c5cf6c18db0fa4946437f0bca3dbb313e21b
tree323755976d162c86281c64fe3bfc74bdbea6cead
parentdbd98a4b1b4c5311a45d0ade760ec1218924f45d
Do not fold ADD / SUB into load / store (to form pre-indexed, post-indexed
load / store) if the ADD / SUB has a live definition of CPSR.

Bug reported by David Meyer. Alas, no test case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149970 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMLoadStoreOptimizer.cpp