summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-01-15 00:18:34 +0000
committerJim Grosbach <grosbach@apple.com>2010-01-15 00:18:34 +0000
commitd0860d6e02f7feca26443951fd852f54c57638a2 (patch)
treef01f537cbf58fc5e8d4985e4efbd8210e187ec16 /llvm/lib/Target/ARM/ARMISelLowering.cpp
parent3aa70b2c4f89025183069f138c0c67e1c22c9d39 (diff)
downloadbcm5719-llvm-d0860d6e02f7feca26443951fd852f54c57638a2.tar.gz
bcm5719-llvm-d0860d6e02f7feca26443951fd852f54c57638a2.zip
EmitAtomicCmpSwap() custome inserter needs to delete the MI passed in. EmitAtomicBinary() already does this.
llvm-svn: 93479
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 275b30c9ae9..7c87448c4e8 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -3130,6 +3130,9 @@ ARMTargetLowering::EmitAtomicCmpSwap(MachineInstr *MI,
// exitMBB:
// ...
BB = exitMBB;
+
+ MF->DeleteMachineInstr(MI); // The instruction is gone now.
+
return BB;
}
OpenPOWER on IntegriCloud