This is an archive of the discontinued LLVM Phabricator instance.

[AlwaysInliner] Respect noinline call site attribute
ClosedPublic

Authored by xbolva00 on Feb 11 2022, 9:02 AM.

Details

Summary
always_inline foo() { }

bar () {

noinline foo();
}

We should prefer call site attribute over attribute on decl. This is fix for AlwaysInliner, similar fix is needed for normal Inliner (follow up).

Related to https://reviews.llvm.org/D119061

Diff Detail

Event Timeline

xbolva00 created this revision.Feb 11 2022, 9:02 AM
xbolva00 requested review of this revision.Feb 11 2022, 9:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 11 2022, 9:02 AM
aeubanks accepted this revision.Feb 11 2022, 9:08 AM
This revision is now accepted and ready to land.Feb 11 2022, 9:08 AM
xbolva00 updated this revision to Diff 407938.Feb 11 2022, 10:17 AM

Added one more test for noinline / alwaysinline combo.

This revision was landed with ongoing or failed builds.Feb 11 2022, 10:23 AM
This revision was automatically updated to reflect the committed changes.