This is an archive of the discontinued LLVM Phabricator instance.

[FuncSpec] Promote stack values before specialization
ClosedPublic

Authored by labrinea on Jun 13 2023, 3:50 AM.

Details

Summary

After each iteration of the function specializer, constant stack values are promoted to constant globals in order to enable recursive function specialization. This should also be done once before running the specializer. Enables specialization of _QMbrute_forcePdigits_2 from SPEC2017:548.exchange2_r

Diff Detail

Event Timeline

labrinea created this revision.Jun 13 2023, 3:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2023, 3:50 AM
labrinea requested review of this revision.Jun 13 2023, 3:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2023, 3:50 AM
ChuanqiXu accepted this revision.Jun 19 2023, 1:03 AM

LGTM. Thanks.

This revision is now accepted and ready to land.Jun 19 2023, 1:03 AM
This revision was landed with ongoing or failed builds.Jun 19 2023, 6:38 AM
This revision was automatically updated to reflect the committed changes.
llvm/lib/Transforms/IPO/FunctionSpecialization.cpp