This is an archive of the discontinued LLVM Phabricator instance.

Update domtree incrementally in loop peeling.
ClosedPublic

Authored by sepavloff on Jan 23 2017, 7:40 AM.

Details

Summary

With this change dominator tree remains in sync after each step of loop
peeling.

Diff Detail

Repository
rL LLVM

Event Timeline

sepavloff created this revision.Jan 23 2017, 7:40 AM
mkuper accepted this revision.Jan 23 2017, 11:18 AM

LGTM with a couple of nits.

lib/Transforms/Utils/LoopUnrollPeel.cpp
191 ↗(On Diff #85390)

Can you move this to immediately below line 207? I think it makes more sense to have this after the comment lines 203-206.

384 ↗(On Diff #85390)

Can you decouple this from D29028?
I'd suggest just doing this under UnrollVerifyDomtree for now.

This revision is now accepted and ready to land.Jan 23 2017, 11:18 AM
mkuper added inline comments.Jan 23 2017, 1:58 PM
lib/Transforms/Utils/LoopUnrollPeel.cpp
384 ↗(On Diff #85390)

I see Michael Z approved D29028, so feel free to ignore this.

This revision was automatically updated to reflect the committed changes.