[clang] [llvm] [IR][IPO] Don't rewrite the signature of optnone functions (PR #211804)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 10 07:48:21 PDT 2026
================
@@ -2921,6 +2921,12 @@ bool Attributor::isValidFunctionSignatureRewrite(
return false;
Function *Fn = Arg.getParent();
+ if (!Fn->canChangeSignature()) {
----------------
jhuber6 wrote:
I took a closer look, and the attributor already gates `optnone` functions on `shouldInitialize`, so this was a complete no-op. I've dropped it for now, we can investigate allowing the attributor to search through `optnone` functions later.
https://github.com/llvm/llvm-project/pull/211804
More information about the cfe-commits
mailing list