1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Set SeenStore to true to prevent loads from being moved; also eliminates a non-deterministic behavior.

llvm-svn: 144628
This commit is contained in:
Evan Cheng 2011-11-15 06:26:51 +00:00
parent fdcba17bec
commit 40f68c968e

View File

@ -924,7 +924,7 @@ TwoAddressInstructionPass::RescheduleMIBelowKill(MachineBasicBlock *MBB,
if (isTwoAddrUse(*KillMI, Reg, DstReg))
return false;
bool SeenStore;
bool SeenStore = true;
if (!MI->isSafeToMove(TII, AA, SeenStore))
return false;
@ -1071,7 +1071,7 @@ TwoAddressInstructionPass::RescheduleKillAboveMI(MachineBasicBlock *MBB,
if (isTwoAddrUse(*KillMI, Reg, DstReg))
return false;
bool SeenStore;
bool SeenStore = true;
if (!KillMI->isSafeToMove(TII, AA, SeenStore))
return false;