summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-09-10 12:53:28 +0000
committerTim Northover <tnorthover@apple.com>2014-09-10 12:53:28 +0000
commitba1d7042290bee0d0bf8b920a62758951e14d609 (patch)
treeb36391f5ab3ec1b57546d1b43c8c1227ac566d01 /llvm/lib/Target/ARM/Thumb2SizeReduction.cpp
parenta2626a584d539d1463be58d5987018862b15d199 (diff)
downloadbcm5719-llvm-ba1d7042290bee0d0bf8b920a62758951e14d609.tar.gz
bcm5719-llvm-ba1d7042290bee0d0bf8b920a62758951e14d609.zip
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. llvm-svn: 217498
Diffstat (limited to 'llvm/lib/Target/ARM/Thumb2SizeReduction.cpp')
-rw-r--r--llvm/lib/Target/ARM/Thumb2SizeReduction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp b/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp
index 49a69fd3a6a..2176b839f1f 100644
--- a/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp
+++ b/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp
@@ -335,7 +335,7 @@ static bool VerifyLowRegs(MachineInstr *MI) {
bool isPCOk = (Opc == ARM::t2LDMIA_RET || Opc == ARM::t2LDMIA ||
Opc == ARM::t2LDMDB || Opc == ARM::t2LDMIA_UPD ||
Opc == ARM::t2LDMDB_UPD);
- bool isLROk = (Opc == ARM::t2STMIA_UPD || Opc == ARM::t2STMDB_UPD);
+ bool isLROk = (Opc == ARM::t2STMDB_UPD);
bool isSPOk = isPCOk || isLROk;
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
const MachineOperand &MO = MI->getOperand(i);
OpenPOWER on IntegriCloud