This is an archive of the discontinued LLVM Phabricator instance.

[MemorySSA] Remove unnecessary MSSA dependencies
ClosedPublic

Authored by nikic on Aug 14 2021, 9:24 AM.

Details

Summary

LoopLoadElimination, LoopVersioning and LoopVectorize currently fetch MemorySSA when construction LoopAccessAnalysis. However, LoopAccessAnalysis does not actually use MemorySSA and we can pass nullptr instead.

Together with D108073 this makes for a free compile-time improvement: https://llvm-compile-time-tracker.com/compare.php?from=371f6ec0254dbdb461323a46515d167c6fe40359&to=59e5e3b85ed5a01c92b9d76a65327eae98953a3d&stat=instructions

Diff Detail

Event Timeline

nikic created this revision.Aug 14 2021, 9:24 AM
nikic requested review of this revision.Aug 14 2021, 9:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2021, 9:24 AM
asbirlea accepted this revision.Aug 16 2021, 9:20 AM

LGTM!

This revision is now accepted and ready to land.Aug 16 2021, 9:20 AM
This revision was landed with ongoing or failed builds.Aug 16 2021, 11:41 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 16 2021, 11:41 AM