================ @@ -200,6 +200,7 @@ doPromotion(Function *F, FunctionAnalysisManager &FAM, F->getParent()->getFunctionList().insert(F->getIterator(), NF); NF->takeName(F); ---------------- david-xl wrote: Is this needed? https://github.com/llvm/llvm-project/pull/105742