This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Do not check max-bb for a single block callee
ClosedPublic

Authored by rampitec on Mar 1 2021, 4:20 PM.

Details

Summary

-amdgpu-inline-max-bb option could lead to a suboptimal
codegen preventing inlining of really simple functions
including pure wrapper calls. Relax the cutoff by allowing
to call a function with a single block on the grounds
that it will not increase total number of blocks after
inlining.

Diff Detail

Event Timeline

rampitec created this revision.Mar 1 2021, 4:20 PM
rampitec requested review of this revision.Mar 1 2021, 4:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2021, 4:20 PM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm accepted this revision.Mar 1 2021, 6:05 PM
This revision is now accepted and ready to land.Mar 1 2021, 6:05 PM
This revision was landed with ongoing or failed builds.Mar 1 2021, 8:11 PM
This revision was automatically updated to reflect the committed changes.