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 | a29dbd2dcc04c8d07dd9e1e49b4e54debbc23996 (patch) | |
tree | 3235147f15aabbb1af33e5a771132a495a9862a8 /lib/Analysis/RegionInfo.cpp | |
parent | d8939a822586d0cf273b7a1a938c619a8d24a481 (diff) | |
download | llvm-a29dbd2dcc04c8d07dd9e1e49b4e54debbc23996.tar.gz llvm-a29dbd2dcc04c8d07dd9e1e49b4e54debbc23996.tar.bz2 llvm-a29dbd2dcc04c8d07dd9e1e49b4e54debbc23996.tar.xz |
Use DominatorTree::properlyDominates instead of dominates with an
explicit inequality check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109398 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RegionInfo.cpp')
-rw-r--r-- | lib/Analysis/RegionInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/RegionInfo.cpp b/lib/Analysis/RegionInfo.cpp index eb1ea88b6e..71e3e554cf 100644 --- 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; |