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 Authored by xbolva00 on Feb 11 2022, 12:42 PM.
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
Unit Tests 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