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

Antonio Frighetto via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 19 06:35:45 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)
----------------
antoniofrighetto wrote:

```suggestion
    for (const auto &[BB, V] : R.Defines)
```

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


More information about the llvm-commits mailing list