[llvm-commits] [llvm] r153519 - /llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Tue Mar 27 10:33:52 PDT 2012
Author: stoklund
Date: Tue Mar 27 12:33:52 2012
New Revision: 153519
URL: http://llvm.org/viewvc/llvm-project?rev=153519&view=rev
Log:
ARMLoadStoreOptimizer invalidates register liveness.
This pass tries to update kill flags, but there are still many bugs.
Passes after the load/store optimizer don't need accurate liveness, so
don't even try.
<rdar://problem/11101911>
Modified:
llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp?rev=153519&r1=153518&r2=153519&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp Tue Mar 27 12:33:52 2012
@@ -1411,6 +1411,10 @@
}
delete RS;
+
+ // Kill flags aren't updated accurately by this pass.
+ Fn.getRegInfo().invalidateLiveness();
+
return Modified;
}
More information about the llvm-commits
mailing list