[llvm] [VPlan] Lower BranchOnTwoConds to chain of 2 simple branches. (PR #174016)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 11 12:48:08 PST 2026
================
@@ -3760,42 +3760,40 @@ void VPlanTransforms::expandBranchOnTwoConds(VPlan &Plan) {
// Expand BranchOnTwoConds instructions into explicit CFG with
// single-condition branches, by introducing a new branch in VPBB that jumps
- // to a new intermediate block if either condition is true and to the
- // third successor otherwise. The intermediate block jumps to the first or
- // second successor, depending on the first condition.
+ // to the first successor if the first condition is true, and a new
+ // intermediate block otherwise. The intermediate block jumps to the second
+ // successor if the second condition is true, otherwise to the third
+ // successor.
----------------
ayalz wrote:
```suggestion
// 1. A branch that replaces BranchOnTwoConds, jumps to the first successor if
// the first condition is true, and otherwise jumps to a new interim block.
// 2. A branch that ends the interim block, jumps to the second successor if
// the second condition is true, and otherwise jumps to the third successor.
```
https://github.com/llvm/llvm-project/pull/174016
More information about the llvm-commits
mailing list