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:
parent
fdcba17bec
commit
40f68c968e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user