[llvm] [VPlan] Simplify Plan's entry in removeBranchOnConst. (PR #154510)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 31 14:48:08 PDT 2025
================
@@ -7345,8 +7354,9 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
} else {
// Keep all loop hints from the original loop on the vector loop (we'll
// replace the vectorizer-specific hints below).
- if (MDNode *LID = OrigLoop->getLoopID())
- L->setLoopID(LID);
+ if (BestVPlan.getScalarPreheader()->getNumPredecessors() > 0)
----------------
ayalz wrote:
```suggestion
} else if (BestVPlan.getScalarPreheader()->getNumPredecessors() > 0) {
```
https://github.com/llvm/llvm-project/pull/154510
More information about the llvm-commits
mailing list