[llvm] 8b7bbed - [LV] Re-add early exit in VPRecipeBuilder::createBlockInMask.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 10 07:02:26 PST 2024
Author: Florian Hahn
Date: 2024-01-10T15:02:14Z
New Revision: 8b7bbedec7bcfbeaee4ab9b74471cbbbc8633e1a
URL: https://github.com/llvm/llvm-project/commit/8b7bbedec7bcfbeaee4ab9b74471cbbbc8633e1a
DIFF: https://github.com/llvm/llvm-project/commit/8b7bbedec7bcfbeaee4ab9b74471cbbbc8633e1a.diff
LOG: [LV] Re-add early exit in VPRecipeBuilder::createBlockInMask.
Re-add early exit that was accidentally dropped in 51afb10.
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 51ce88480c0880..1a5b9dbb82fa04 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -8031,6 +8031,7 @@ void VPRecipeBuilder::createBlockInMask(BasicBlock *BB, VPlan &Plan) {
VPValue *EdgeMask = createEdgeMask(Predecessor, BB, Plan);
if (!EdgeMask) { // Mask of predecessor is all-one so mask of block is too.
BlockMaskCache[BB] = EdgeMask;
+ return;
}
if (!BlockMask) { // BlockMask has its initialized nullptr value.
More information about the llvm-commits
mailing list