[llvm] [SSAUpdaterBulk] Fix incorrect live-in values for a block. (PR #131762)

Valery Pykhtin via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 19 08:14:19 PDT 2025


================
@@ -132,8 +125,8 @@ void SSAUpdaterBulk::RewriteAllUses(DominatorTree *DT,
                       << " use(s)\n");
 
     SmallPtrSet<BasicBlock *, 2> DefBlocks;
-    for (auto &Def : R.Defines)
-      DefBlocks.insert(Def.first);
+    for (auto [BB, V] : R.Defines)
----------------
vpykhtin wrote:

BB and V are pointers, I don't need a const ref to a pointer

https://github.com/llvm/llvm-project/pull/131762


More information about the llvm-commits mailing list