[llvm-commits] [llvm] r144628 - /llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
Evan Cheng
evan.cheng at apple.com
Mon Nov 14 22:26:51 PST 2011
Author: evancheng
Date: Tue Nov 15 00:26:51 2011
New Revision: 144628
URL: http://llvm.org/viewvc/llvm-project?rev=144628&view=rev
Log:
Set SeenStore to true to prevent loads from being moved; also eliminates a non-deterministic behavior.
Modified:
llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
Modified: llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp?rev=144628&r1=144627&r2=144628&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp Tue Nov 15 00:26:51 2011
@@ -924,7 +924,7 @@
if (isTwoAddrUse(*KillMI, Reg, DstReg))
return false;
- bool SeenStore;
+ bool SeenStore = true;
if (!MI->isSafeToMove(TII, AA, SeenStore))
return false;
@@ -1071,7 +1071,7 @@
if (isTwoAddrUse(*KillMI, Reg, DstReg))
return false;
- bool SeenStore;
+ bool SeenStore = true;
if (!KillMI->isSafeToMove(TII, AA, SeenStore))
return false;
More information about the llvm-commits
mailing list