[PATCH] [ARM] ARMLoadStoreOpt::UpdateBaseRegUses should stop on def
John Brawn
john.brawn at arm.com
Tue Jun 23 09:06:48 PDT 2015
REPOSITORY
rL LLVM
http://reviews.llvm.org/D10566
Files:
llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
Index: llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
===================================================================
--- llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
+++ llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
@@ -444,7 +444,7 @@
return;
}
- if (MBBI->killsRegister(Base))
+ if (MBBI->killsRegister(Base) || MBBI->definesRegister(Base))
// Register got killed. Stop updating.
return;
}
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10566.28247.patch
Type: text/x-patch
Size: 452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150623/02d2e246/attachment.bin>
More information about the llvm-commits
mailing list