[llvm] [PGO][ICP] Prevent indirect call promotion to functions with incompatible target features (PR #192142)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Mon May 4 16:49:15 PDT 2026
================
@@ -477,6 +477,23 @@ bool llvm::isLegalToPromote(const CallBase &CB, Function *Callee,
}
}
+ // Check target feature compatibility.
----------------
teresajohnson wrote:
Expand to note that this can provoke incorrect inlining if the callee has the always_inline attribute.
https://github.com/llvm/llvm-project/pull/192142
More information about the llvm-commits
mailing list