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:
d8939a8
)
Use DominatorTree::properlyDominates instead of dominates with an
author
Dan Gohman
<gohman@apple.com>
Mon, 26 Jul 2010 17:34:05 +0000
(17:34 +0000)
committer
Dan Gohman
<gohman@apple.com>
Mon, 26 Jul 2010 17:34:05 +0000
(17:34 +0000)
explicit inequality check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109398
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/RegionInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/RegionInfo.cpp
b/lib/Analysis/RegionInfo.cpp
index eb1ea88b6e4d6c65f4d9c49204dc70d3ff30e94a..71e3e554cf1fa206c6df1d39229a2cf086e47cb5 100644
(file)
--- a/
lib/Analysis/RegionInfo.cpp
+++ b/
lib/Analysis/RegionInfo.cpp
@@
-356,7
+356,7
@@
bool RegionInfo::isRegion(BasicBlock *entry, BasicBlock *exit) const {
// Do not allow edges pointing into the region.
for (DST::iterator SI = exitSuccs->begin(), SE = exitSuccs->end();
SI != SE; ++SI)
- if (DT->
dominates(entry, *SI) && *SI != entry
&& *SI != exit)
+ if (DT->
properlyDominates(entry, *SI)
&& *SI != exit)
return false;