This is an archive of the discontinued LLVM Phabricator instance.

RegionInfo: use a range-based for loop [NFCI]
ClosedPublic

Authored by nhaehnle on Dec 9 2020, 4:30 AM.

Details

Summary

Change-Id: I9985d72191a2b0680195032acf8a14ad2ba954ed

Diff Detail

Event Timeline

nhaehnle requested review of this revision.Dec 9 2020, 4:30 AM
nhaehnle created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 9 2020, 4:30 AM

Seems trivial enough, and there doesn't really seem to be an owner of this code...

dblaikie accepted this revision.Dec 9 2020, 11:14 AM

Yeah, looks good - generally no need to send things like this sort of cleanup for review (can be committed directly/for post-commit review).

I guess this could even be replaced by something like:

return llvm::none_of(*entrySuccs, [&](BlockT* successor) {
  return successor != exit && successor != entry;
});

Not sure if that's better/more readable or not, up to you.

This revision is now accepted and ready to land.Dec 9 2020, 11:14 AM
This revision was landed with ongoing or failed builds.Dec 29 2020, 7:01 AM
This revision was automatically updated to reflect the committed changes.