[llvm] [VPlan] Connect Entry to scalar preheader during initial construction. (PR #140132)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 27 02:18:38 PDT 2025
================
@@ -558,6 +561,9 @@ void VPlanTransforms::prepareForVectorization(
// The connection order corresponds to the operands of the conditional branch,
// with the middle block already connected to the exit block.
VPBlockUtils::connectBlocks(MiddleVPBB, ScalarPH);
+ // Also connect the entry block to the scalar preheader.
+ VPBlockUtils::connectBlocks(Plan.getEntry(), ScalarPH);
----------------
ayalz wrote:
Temporary inconsistency is worth clarifying in a TODO.
https://github.com/llvm/llvm-project/pull/140132
More information about the llvm-commits
mailing list