mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
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
This commit is contained in:
parent
d8939a8225
commit
a29dbd2dcc
@ -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;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user