diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-26 17:34:05 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-26 17:34:05 +0000 |
commit | b3aa6c7110f341d1481913a795a3c5fcc300c220 (patch) | |
tree | dc2183fc5bd3b32dcb6466dec94c0c0a8e8e2b87 /llvm/lib/Analysis/RegionInfo.cpp | |
parent | 19b9f958e120186534c7a4967f0564e583ebb8ee (diff) | |
download | bcm5719-llvm-b3aa6c7110f341d1481913a795a3c5fcc300c220.tar.gz bcm5719-llvm-b3aa6c7110f341d1481913a795a3c5fcc300c220.zip |
Use DominatorTree::properlyDominates instead of dominates with an
explicit inequality check.
llvm-svn: 109398
Diffstat (limited to 'llvm/lib/Analysis/RegionInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/RegionInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/RegionInfo.cpp b/llvm/lib/Analysis/RegionInfo.cpp index eb1ea88b6e4..71e3e554cf1 100644 --- a/llvm/lib/Analysis/RegionInfo.cpp +++ b/llvm/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; |