projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LoopInfo: Simplify ownership of Loop objects
[oota-llvm.git]
/
lib
/
Transforms
/
Scalar
/
LoopDeletion.cpp
diff --git
a/lib/Transforms/Scalar/LoopDeletion.cpp
b/lib/Transforms/Scalar/LoopDeletion.cpp
index bc00ff3f3a424ca94e3a564dd845f44ae8e41077..7b1940b48c31bcdbaaf7360521b01072418fb474 100644
(file)
--- a/
lib/Transforms/Scalar/LoopDeletion.cpp
+++ b/
lib/Transforms/Scalar/LoopDeletion.cpp
@@
-245,7
+245,7
@@
bool LoopDeletion::runOnLoop(Loop *L, LPPassManager &) {
loopInfo.removeBlock(BB);
// The last step is to update LoopInfo now that we've eliminated this loop.
- loopInfo.
updateUnloop
(L);
+ loopInfo.
markAsRemoved
(L);
Changed = true;
++NumDeleted;