Previously the NPM inliner would skip all potential inlines in an
optnone function, but alwaysinline callees should be inlined regardless
of optnone.
Fixes inline-optnone.ll under NPM.
Differential D83021
[Inliner] Don't skip inlining alwaysinline in optnone functions aeubanks on Jul 1 2020, 9:11 PM. Authored by
Details Previously the NPM inliner would skip all potential inlines in an Fixes inline-optnone.ll under NPM.
Diff Detail
Event TimelineComment Actions Actually, I'm wondering if the NPM inliner properly handles alwaysinline in all cases? I don't see any other references to "alwaysinline" in Inliner.cpp (besides some legacy passes). Comment Actions jyknight pointed me to llvm::getAttributeBasedInliningDecision() where alwaysinline is handled. |