This is an archive of the discontinued LLVM Phabricator instance.

[FuncSpec] Consider small noinline functions for specialisation
ClosedPublic

Authored by chill on Oct 13 2022, 3:15 AM.

Details

Summary

Small functions with size under a given threshold are not
considered for specialisaion on the presumption that they
are easy to inline. This does not apply to noinline
functions, though.

Diff Detail

Event Timeline

chill created this revision.Oct 13 2022, 3:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2022, 3:15 AM
chill requested review of this revision.Oct 13 2022, 3:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2022, 3:15 AM
ChuanqiXu accepted this revision.Oct 13 2022, 6:57 PM

LGTM. Thanks!

llvm/test/Transforms/FunctionSpecialization/func-spec-noinline.ll
36

Add a newline

This revision is now accepted and ready to land.Oct 13 2022, 6:57 PM
chill updated this revision to Diff 467734.Oct 14 2022, 4:06 AM
chill marked an inline comment as done.