This is an archive of the discontinued LLVM Phabricator instance.

[XRay] Lazily compute MachineLoopInfo instead of requiring it.
ClosedPublic

Authored by mzolotukhin on Mar 19 2018, 5:47 PM.

Details

Summary

Currently X-Ray Instrumentation pass has a dependency on MachineLoopInfo
(and thus on MachineDominatorTree as well) and we have to compute them
even if X-Ray is not used. This patch changes it to a lazy computation
to save compile time by avoiding these redundant computations.

Diff Detail

Repository
rL LLVM

Event Timeline

mzolotukhin created this revision.Mar 19 2018, 5:47 PM
dberris accepted this revision.Mar 19 2018, 7:39 PM

LGTM -- thank you!

This revision is now accepted and ready to land.Mar 19 2018, 7:39 PM
This revision was automatically updated to reflect the committed changes.