https://github.com/nikic commented: Here again the question: Why does ArgPromotion have to do this? Why is this not left to SROA when the calling function is visited? https://github.com/llvm/llvm-project/pull/110248