This is an archive of the discontinued LLVM Phabricator instance.

[LICM] Small update to note changes made in hoistRegion
ClosedPublic

Authored by andrew.w.kaylor on Jan 5 2017, 9:32 AM.

Details

Summary

I'm not sure how important this is, but I think the code was technically incorrect without it.

I was looking at LICM to see if I could improve compilation time. The easiest thing I found turned out to have been fixed last week with r290726. This one liner was all that was left of a patch I was working on. :-)

Diff Detail

Repository
rL LLVM

Event Timeline

andrew.w.kaylor retitled this revision from to [LICM] Small update to note changes made in hoistRegion.
andrew.w.kaylor updated this object.
andrew.w.kaylor added a reviewer: mkuper.
andrew.w.kaylor set the repository for this revision to rL LLVM.
andrew.w.kaylor added a subscriber: llvm-commits.
mkuper accepted this revision.Jan 5 2017, 10:51 AM
mkuper edited edge metadata.

Yes, this should definitely be there. LGTM.
(Out of curiosity - you mean r290726 actually has an observable effect on compile time?)

This revision is now accepted and ready to land.Jan 5 2017, 10:51 AM

(Out of curiosity - you mean r290726 actually has an observable effect on compile time?)

I hadn't gotten as far as taking measurements. I did find a file in a spec test where the LCSSA form was being unnecessarily recomputed 43 times, but it was probably relatively quick since nothing needed to change.

LICM was showing up as a time consuming pass on a couple of measurements that were sent my way, so my first step was just reading through the code and looking for anything obvious that could be fixed easily. The two things I saw were the issue you addressed in r290726 and the funclet coloring thing I e-mailed you about.

This revision was automatically updated to reflect the committed changes.