This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Improve performance of NoStoreFuncVisitor
ClosedPublic

Authored by george.karpenkov on Mar 14 2018, 5:04 PM.

Details

Summary

Compute modifying frames lazily on demand.
NB: two sets can be indeed replaced by a map, but IMO readability would suffer, and the performance gain would be tiny.

Diff Detail

Repository
rL LLVM

Event Timeline

NoQ accepted this revision.Mar 19 2018, 2:12 PM

We've had a 4x analysis time increase on a specific file due to this code interacting in weird manner with temporary constructor inlining.

Thanks for fixing this! :)

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