]> granicus.if.org Git - llvm/commit
ARM load/store optimizer: Compute BaseKill correctly.
authorMoritz Roth <moritz.roth@arm.com>
Fri, 15 Aug 2014 17:00:20 +0000 (17:00 +0000)
committerMoritz Roth <moritz.roth@arm.com>
Fri, 15 Aug 2014 17:00:20 +0000 (17:00 +0000)
commit713d9cbc3e4c3f0482b9849bbd50a7a78c15e86f
tree5279f9aead40f8f38f79b9d46201f203e58cb38c
parent7b0f4a82d4de49c2a1c00ef93a39d4cb2534c9b9
ARM load/store optimizer: Compute BaseKill correctly.

This adds some code back that was deleted in r92053. The location of the
last merged memory operation needs to be kept up-to-date since MemOps
may be in a different order to the original instruction stream to
allow merging (since registers need to be in ascending order). Also
simplify the logic to determine BaseKill using findRegisterUseOperandIdx
to use an equivalent function call instead.

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