projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20f4d34
)
Eliminate duplicate phi nodes in loops. Loop rotation, for example, can introduce...
author
Jim Grosbach
<grosbach@apple.com>
Thu, 19 Nov 2009 02:03:18 +0000
(
02:03
+0000)
committer
Jim Grosbach
<grosbach@apple.com>
Thu, 19 Nov 2009 02:03:18 +0000
(
02:03
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89298
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/LoopSimplify.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/LoopSimplify.cpp
b/lib/Transforms/Utils/LoopSimplify.cpp
index 2ab0972149588b0bc31f1235931129ab702ebd77..44a2c1f851819c19c385ef41c764af659e10ff3a 100644
(file)
--- a/
lib/Transforms/Utils/LoopSimplify.cpp
+++ b/
lib/Transforms/Utils/LoopSimplify.cpp
@@
-305,6
+305,12
@@
ReprocessLoop:
}
}
+ // If there are duplicate phi nodes (for example, from loop rotation),
+ // get rid of them.
+ for (Loop::block_iterator BB = L->block_begin(), E = L->block_end();
+ BB != E; ++BB)
+ EliminateDuplicatePHINodes(*BB);
+
return Changed;
}