This is an archive of the discontinued LLVM Phabricator instance.

[SCEV] Cache results of computeExitLimit
ClosedPublic

Authored by mkazantsev on Jul 25 2017, 2:55 AM.

Details

Summary

This patch adds a cache for computeExitLimit to save compilation time. A lot of examples of
tests that take extensive time to compile are attached to the bug 33494.

Diff Detail

Repository
rL LLVM

Event Timeline

mkazantsev created this revision.Jul 25 2017, 2:55 AM
mzolotukhin accepted this revision.Jul 25 2017, 5:17 AM

Looks good to me. Out of curiosity, does the patch improve compile time on usual tests (rather than on corner cases)?

Michael

This revision is now accepted and ready to land.Jul 25 2017, 5:17 AM

Hi Michael,

Recently I've opened a bug https://bugs.llvm.org/show_bug.cgi?id=33901 to investigate how our changes made against corner cases impact some real workloads in particular. So I guess I can check it in frames of this experiment.

This revision was automatically updated to reflect the committed changes.