always_inline foo() { } bar () { noinline foo(); }
We should prefer call site attribute over attribute on decl.
Related to https://reviews.llvm.org/D119061
Differential D119579
[Inliner] Respect noinline call site attribute xbolva00 on Feb 11 2022, 12:42 PM. Authored by
Details
always_inline foo() { } bar () { noinline foo(); } We should prefer call site attribute over attribute on decl. Related to https://reviews.llvm.org/D119061
Diff Detail
Event Timeline
|
checking the call site attributes with Call.getAttributes().hasFnAttr(Attribute::NoInline) should be enough since noinline and alwaysinline are incompatible within a set of attriutes