mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 03:06:28 +00:00
Delete the instruction just before the function terminates for consistency sake.
llvm-svn: 91836
This commit is contained in:
parent
ecb9172c96
commit
c46a0ba3fc
@ -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