[PATCH] D16434: Fix ARM load/store opt live reg computing
Weiming Zhao via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 21 16:38:18 PST 2016
weimingz updated this revision to Diff 45615.
Repository:
rL LLVM
http://reviews.llvm.org/D16434
Files:
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
Index: lib/Target/ARM/ARMLoadStoreOptimizer.cpp
===================================================================
--- lib/Target/ARM/ARMLoadStoreOptimizer.cpp
+++ lib/Target/ARM/ARMLoadStoreOptimizer.cpp
@@ -560,6 +560,9 @@
while (LiveRegPos != Before) {
--LiveRegPos;
LiveRegs.stepBackward(*LiveRegPos);
+ if (LiveRegPos->getOpcode() == ARM::BX_RET ||
+ LiveRegPos->getOpcode() == ARM::tBX_RET)
+ LiveRegs.addReg(ARM::LR);
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16434.45615.patch
Type: text/x-patch
Size: 464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160122/073da17a/attachment.bin>
More information about the llvm-commits
mailing list