projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid deleting individual instructions until AFTER dead blocks have dropped
[oota-llvm.git]
/
lib
/
Transforms
/
Scalar
/
LICM.cpp
diff --git
a/lib/Transforms/Scalar/LICM.cpp
b/lib/Transforms/Scalar/LICM.cpp
index 3be163ce412b92c7febe2603807c9af99176ecdf..2e5adf6f7a87615027f988891e1837acd5e3254f 100644
(file)
--- a/
lib/Transforms/Scalar/LICM.cpp
+++ b/
lib/Transforms/Scalar/LICM.cpp
@@
-184,7
+184,7
@@
void LICM::visitBasicBlock(BasicBlock *BB) {
visit(BB->begin()[i]);
BasicBlock::iterator It = BB->begin()+i;
- if (dceInstruction(
BB->getInstList(),
It))
+ if (dceInstruction(It))
Changed = true;
else
++i;