ARM: don't size-reduce STMs using the LR register.
authorTim Northover <tnorthover@apple.com>
Wed, 10 Sep 2014 12:53:28 +0000 (12:53 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 10 Sep 2014 12:53:28 +0000 (12:53 +0000)
commit01dbae1163b7da9a20912e1783e8b26af7bcb99f
tree16d4eb080c5d4cb2dcc8babc33d67432dba814d5
parentb3a86a097be30c16620d06d180afcc26358f204e
ARM: don't size-reduce STMs using the LR register.

The only Thumb-1 multi-store capable of using LR is the PUSH instruction, which
translates to STMDB, so we shouldn't convert STMIAs.

Patch by Sergey Dmitrouk.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217498 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/Thumb2SizeReduction.cpp
test/CodeGen/ARM/wrong-t2stmia-size-opt.ll [new file with mode: 0644]