[llvm-branch-commits] [llvm] [KeyInstr][SimplifyCFG] Remap atoms when folding br to common succ into pred (PR #133482)
Stephen Tozer via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Apr 9 04:24:49 PDT 2025
================
@@ -1182,6 +1187,19 @@ static void cloneInstructionsIntoPredecessorBlockAndUpdateSSAUses(
U.set(NewBonusInst);
}
}
+
+ // Key Instructions: We may have propagated atom info into the pred. If the
+ // pred's terminator already has atom info do nothing as merging would drop
+ // one atom group anyway. If it doesn't, propagte the remapped atom group
----------------
SLTozer wrote:
```suggestion
// one atom group anyway. If it doesn't, propagate the remapped atom group
```
https://github.com/llvm/llvm-project/pull/133482
More information about the llvm-branch-commits
mailing list