[llvm] [Transforms][IPO] Add func suffix in ArgumentPromotion and  DeadArgume… (PR #105742)
    Eli Friedman via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Aug 23 14:19:15 PDT 2024
    
    
  
================
@@ -876,6 +876,8 @@ bool DeadArgumentEliminationPass::removeDeadStuffFromFunction(Function *F) {
   // it again.
   F->getParent()->getFunctionList().insert(F->getIterator(), NF);
   NF->takeName(F);
+  if (NumArgumentsEliminated)
----------------
efriedma-quic wrote:
What cases are we excluding with the "if" here?  If we don't change the signature, we don't recreate the function in the first place.
https://github.com/llvm/llvm-project/pull/105742
    
    
More information about the llvm-commits
mailing list