This is an archive of the discontinued LLVM Phabricator instance.

[NewPM] Add missing LTO ArgPromotion pass
ClosedPublic

Authored by nikic on Aug 28 2021, 4:09 AM.

Details

Summary

This is a followup to D96780 to add one more pass missing from the NewPM LTO pipeline. The missing ArgPromotion run is inserted at the same position as in the LegacyPM (https://github.com/llvm/llvm-project/blob/16086d47c0d0cd08ffae8e69a69c88653e654d01/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp#L1096-L1098), which resolves the already present TODO.

The compile-time impact is minimal: https://llvm-compile-time-tracker.com/compare.php?from=16086d47c0d0cd08ffae8e69a69c88653e654d01&to=90de51b3dfb00239941f00b0eeaa7fc78db2f8b8&stat=instructions

I believe this resolves the last blocker for the NewPM migration in rustc...

Diff Detail

Event Timeline

nikic created this revision.Aug 28 2021, 4:09 AM
nikic requested review of this revision.Aug 28 2021, 4:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2021, 4:09 AM
This revision is now accepted and ready to land.Aug 28 2021, 8:09 PM
This revision was landed with ongoing or failed builds.Aug 29 2021, 3:43 AM
This revision was automatically updated to reflect the committed changes.