forked from OSchip/llvm-project
RegionInfo: use a range-based for loop [NFCI]
Change-Id: I9985d72191a2b0680195032acf8a14ad2ba954ed Differential Revision: https://reviews.llvm.org/D92932
This commit is contained in:
parent
374ef57f13
commit
b76014a4f1
|
@ -585,10 +585,8 @@ bool RegionInfoBase<Tr>::isRegion(BlockT *entry, BlockT *exit) const {
|
|||
// Exit is the header of a loop that contains the entry. In this case,
|
||||
// the dominance frontier must only contain the exit.
|
||||
if (!DT->dominates(entry, exit)) {
|
||||
for (typename DST::iterator SI = entrySuccs->begin(),
|
||||
SE = entrySuccs->end();
|
||||
SI != SE; ++SI) {
|
||||
if (*SI != exit && *SI != entry)
|
||||
for (BlockT *successor : *entrySuccs) {
|
||||
if (successor != exit && successor != entry)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue