diff options
author | Sanjay Patel <spatel@rotateright.com> | 2015-06-13 15:33:15 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2015-06-13 15:33:15 +0000 |
commit | 57149984849a14f664b749a312f61fbdfe413691 (patch) | |
tree | 24596148e06d47ee915cde389867cee545f57b73 /llvm/lib/CodeGen/MachineCombiner.cpp | |
parent | 41044f88597f1c38ded2a44794f8dcc9a6174505 (diff) | |
download | bcm5719-llvm-57149984849a14f664b749a312f61fbdfe413691.tar.gz bcm5719-llvm-57149984849a14f664b749a312f61fbdfe413691.zip |
hoist loop-invariant; NFCI
llvm-svn: 239681
Diffstat (limited to 'llvm/lib/CodeGen/MachineCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineCombiner.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineCombiner.cpp b/llvm/lib/CodeGen/MachineCombiner.cpp index 9af7a65ca41..39adce38071 100644 --- a/llvm/lib/CodeGen/MachineCombiner.cpp +++ b/llvm/lib/CodeGen/MachineCombiner.cpp @@ -387,10 +387,9 @@ bool MachineCombiner::combineInstructions(MachineBasicBlock *MBB) { } else { // Cleanup instructions of the alternative code sequence. There is no // use for them. - for (auto *InstrPtr : InsInstrs) { - MachineFunction *MF = MBB->getParent(); + MachineFunction *MF = MBB->getParent(); + for (auto *InstrPtr : InsInstrs) MF->DeleteMachineInstr(InstrPtr); - } } InstrIdxForVirtReg.clear(); } |