[llvm] AMDGPU: Delay value replacement in PromoteAlloca (PR #186944)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 19 08:23:06 PDT 2026
================
@@ -124,6 +124,25 @@ struct AllocaAnalysis {
explicit AllocaAnalysis(AllocaInst *Alloca) : Alloca(Alloca) {}
};
+// ValueReplacer was used to postpone the value replacement after all the
+// alloca's being processed. The postpone is needed to handle cross-alloca value
+// reference correctly.
+struct ValueReplacer {
----------------
shiltian wrote:
Maybe `SSAUpdaterBulk` could do it?
https://github.com/llvm/llvm-project/pull/186944
More information about the llvm-commits
mailing list