================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to