This is an archive of the discontinued LLVM Phabricator instance.

[PassBuilder] Don't use MemorySSA for standalone LoopRotate passes
ClosedPublic

Authored by nikic on Aug 14 2021, 8:30 AM.

Details

Summary

Two standalone LoopRotate passes scheduled using createFunctionToLoopPassAdaptor() currently enable MemorySSA. However, while LoopRotate can preserve MemorySSA, it does not use it, so requiring MemorySSA is unnecessary.

Weirdly, I'm not seeing any significant compile-time change from this patch, so I'm wondering if I'm misunderstanding something here...

Diff Detail

Event Timeline

nikic created this revision.Aug 14 2021, 8:30 AM
nikic requested review of this revision.Aug 14 2021, 8:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2021, 8:30 AM
nikic updated this revision to Diff 366440.Aug 14 2021, 9:29 AM

Fix clang pipeline test.

nikic added a comment.Aug 14 2021, 9:30 AM

Weirdly, I'm not seeing any significant compile-time change from this patch, so I'm wondering if I'm misunderstanding something here...

The answer to that is D108074: There are subsequent passes that also have unnecessary MemorySSA requirements, so just dropping it here doesn't matter much in practice.

asbirlea accepted this revision.Aug 16 2021, 9:48 AM

Weirdly, I'm not seeing any significant compile-time change from this patch, so I'm wondering if I'm misunderstanding something here...

The answer to that is D108074: There are subsequent passes that also have unnecessary MemorySSA requirements, so just dropping it here doesn't matter much in practice.

Makes sense. I'm happy to drop these. They can always be readded if those passes are changed to use (and preserve) MemorySSA.
Thank you for the cleanup patches!

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