projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41044f8
)
hoist loop-invariant; NFCI
author
Sanjay Patel
<spatel@rotateright.com>
Sat, 13 Jun 2015 15:33:15 +0000
(15:33 +0000)
committer
Sanjay Patel
<spatel@rotateright.com>
Sat, 13 Jun 2015 15:33:15 +0000
(15:33 +0000)
llvm-svn: 239681
llvm/lib/CodeGen/MachineCombiner.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/MachineCombiner.cpp
b/llvm/lib/CodeGen/MachineCombiner.cpp
index
9af7a65
..
39adce3
100644
(file)
--- 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();
}