This is an archive of the discontinued LLVM Phabricator instance.

[ScopBuilder] Move Scop::init to ScopBuilder. NFC.
ClosedPublic

Authored by Meinersbur on May 5 2017, 7:06 AM.

Details

Summary

Scop::init is used only during SCoP construction. Therefore ScopBuilder seems the more appropriate place for it. We integrate it onto its only caller ScopBuilder::buildScop where some other construction steps already took place.

There was a bail-out check

if (!scop->hasFeasibleRuntimeContext())
  return;

at the end of the init function. Since hasFeasibleRuntimeContext has no side-effects, this was a no-op. Now it guards the call of verifyUses.

Follow-up patches could move the individual construction step methods to ScopBuilder as well.

Diff Detail

Repository
rL LLVM

Event Timeline

Meinersbur created this revision.May 5 2017, 7:06 AM
grosser accepted this revision.May 5 2017, 9:00 AM
This revision is now accepted and ready to land.May 5 2017, 9:00 AM
This revision was automatically updated to reflect the committed changes.