This is an archive of the discontinued LLVM Phabricator instance.

[inlining] Add a clang option to control inlining of functions based on stack size
ClosedPublic

Authored by wolfgangp on Aug 16 2022, 11:42 AM.

Details

Summary

Adding -finline-max-stacksize=<N> to clang. This generates the function attribute` inline-max-stacksize` (introduced in D129904, suppressing inlining of functions with stack sizes exceeding a specified limit.

Diff Detail

Event Timeline

wolfgangp created this revision.Aug 16 2022, 11:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 16 2022, 11:42 AM
wolfgangp requested review of this revision.Aug 16 2022, 11:42 AM
aeubanks accepted this revision.Aug 16 2022, 11:58 AM

perhaps a test that "inline-max-stacksze" doesn't appear if the flag isn't specified?

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