Skip to content

Commit 8b7bbed

Browse files
committed
[LV] Re-add early exit in VPRecipeBuilder::createBlockInMask.
Re-add early exit that was accidentally dropped in 51afb10.
1 parent 79aa776 commit 8b7bbed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8031,6 +8031,7 @@ void VPRecipeBuilder::createBlockInMask(BasicBlock *BB, VPlan &Plan) {
80318031
VPValue *EdgeMask = createEdgeMask(Predecessor, BB, Plan);
80328032
if (!EdgeMask) { // Mask of predecessor is all-one so mask of block is too.
80338033
BlockMaskCache[BB] = EdgeMask;
8034+
return;
80348035
}
80358036

80368037
if (!BlockMask) { // BlockMask has its initialized nullptr value.

0 commit comments

Comments
 (0)