There is a number of places where we need to check that LCSSA form is
preserved. This patch adds a helper function for that.
Details
Details
Diff Detail
Diff Detail
Event Timeline
| 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. | |
I think this basically is Loop::isRecursivelyLCSSAForm.