To shrink a t2LDM instruction to the 16-bit wide tLDM instruction, the base
authorJim Grosbach <grosbach@apple.com>
Tue, 7 Sep 2010 22:30:53 +0000 (22:30 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 7 Sep 2010 22:30:53 +0000 (22:30 +0000)
commit447e7ac913181ec3eae7c56a73c059df5382c029
tree464f366da7b1f8b0e35015c4ad09fbb853e3d418
parentaf3c8024b1f5a5a01938f48429894f2242c66be3
To shrink a t2LDM instruction to the 16-bit wide tLDM instruction, the base
register must be one of the destination registers for the load. Otherwise,
the tLDM instruction will write-back to the base register, which isn't what's
desired (otherwise, we'd have a t2LDM_UPD instead).

rdar://8394087

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