formLCSSA checks that the set of exit block is not empty, and then calls formLCSSAForInstructions which does the same check again.
AFAICT there's nothing changing the set of exit blocks in the meanwhile, making the second check redundant.
Details
Details
- Reviewers
mzolotukhin • dberlin
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Can you verify that by inserting an assertion there?
One thing that I'm not 100% sure there is that we might be looking at different loops in formLCSSA and formLCSSAForInstructions. In the latter we might look at subloops as far as I can tell.
Michael
Comment Actions
Nevermind, I read the code again and I realized we actually can call that on subloops.