mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
Set SeenStore to true to prevent loads from being moved; also eliminates a non-deterministic behavior.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144628 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3273c8937b
commit
f178418729
@ -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…
x
Reference in New Issue
Block a user