mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Delete the instruction just before the function terminates for consistency sake.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91836 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e36025ec18
commit
102ebf16b6
@ -3148,8 +3148,6 @@ ARMTargetLowering::EmitAtomicBinary(MachineInstr *MI, MachineBasicBlock *BB,
|
||||
unsigned incr = MI->getOperand(2).getReg();
|
||||
DebugLoc dl = MI->getDebugLoc();
|
||||
|
||||
F->DeleteMachineInstr(MI); // The instruction is gone now.
|
||||
|
||||
bool isThumb2 = Subtarget->isThumb2();
|
||||
unsigned ldrOpc, strOpc;
|
||||
switch (Size) {
|
||||
@ -3216,6 +3214,9 @@ ARMTargetLowering::EmitAtomicBinary(MachineInstr *MI, MachineBasicBlock *BB,
|
||||
// exitMBB:
|
||||
// ...
|
||||
BB = exitMBB;
|
||||
|
||||
F->DeleteMachineInstr(MI); // The instruction is gone now.
|
||||
|
||||
return BB;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user