This is an archive of the discontinued LLVM Phabricator instance.

Add a routine for LCSSA verification of entire function.
AbandonedPublic

Authored by mzolotukhin on Jun 7 2016, 9:28 PM.

Details

Reviewers
chandlerc
sanjoy
Summary

There is a number of places where we need to check that LCSSA form is
preserved. This patch adds a helper function for that.

Diff Detail

Event Timeline

mzolotukhin updated this revision to Diff 59993.Jun 7 2016, 9:28 PM
mzolotukhin retitled this revision from to Add a routine for LCSSA verification of entire function..
mzolotukhin updated this object.
mzolotukhin added reviewers: sanjoy, chandlerc.
mzolotukhin added a subscriber: llvm-commits.
sanjoy requested changes to this revision.Jun 7 2016, 9:53 PM
sanjoy edited edge metadata.
sanjoy added inline comments.
lib/Transforms/Utils/LCSSA.cpp
274

I think this basically is Loop::isRecursivelyLCSSAForm.

288

I'm not super convinced that we need a new function here. :)

I think this can be:

all_of(LI, [&](Loop *L) { return L->isRecursiveLCSSAForm(DT); });

If you do want a new function, the logical place for it, IMO, is LoopInfo.

This revision now requires changes to proceed.Jun 7 2016, 9:53 PM
mzolotukhin abandoned this revision.Jun 7 2016, 11:33 PM

Oh, neat, we already have everything I need! We no longer need this then.