[llvm] [VPlan] Simplify the computation of the block entry mask. (PR #173265)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 07:31:18 PST 2026
================
@@ -127,15 +133,33 @@ VPValue *VPPredicator::createEdgeMask(VPBasicBlock *Src, VPBasicBlock *Dst) {
}
void VPPredicator::createBlockInMask(VPBasicBlock *VPBB) {
- // Start inserting after the block's phis, which be replaced by blends later.
+ // Compute the edge masks for all incoming edges to VPBB. Insert after the
+ // block's phis, which will be replaced by blends later.
+ // TODO: Skip creating edge masks for blocks that are control-flow equivalent
+ // to header and have no phis.
Builder.setInsertPoint(VPBB, VPBB->getFirstNonPhi());
+ for (auto *Predecessor : SetVector<VPBlockBase *>(
----------------
Mel-Chen wrote:
The code is removed, thanks.
https://github.com/llvm/llvm-project/pull/173265
More information about the llvm-commits
mailing list