This is an archive of the discontinued LLVM Phabricator instance.

[Dominators] Don't compute DFS InOut numbers eagerly.
ClosedPublic

Authored by kuhar on Jun 16 2017, 2:55 PM.

Details

Summary

DFS InOut numbers currently get eagerly computer upon DomTree construction. They are only needed to answer dome dominance queries and they get invalidated by updates and recalculations. Because of that, it is faster in practice to compute them lazily when they are actually needed.

Clang built without this patch takes 6m 45s to boostrap on my machine, and with the patch applied 6m 38s.

Diff Detail

Repository
rL LLVM

Event Timeline

kuhar created this revision.Jun 16 2017, 2:55 PM
davide added a subscriber: davide.Jun 16 2017, 2:58 PM
kuhar updated this revision to Diff 102909.Jun 16 2017, 5:03 PM

Update tests.

dberlin accepted this revision.Jun 16 2017, 9:56 PM
This revision is now accepted and ready to land.Jun 16 2017, 9:56 PM
kuhar updated this revision to Diff 104801.Jun 29 2017, 6:24 PM

Update the diff to apply cleanly.

This revision was automatically updated to reflect the committed changes.