Skip to content

Commit a0a2306

Browse files
committed
!fixup add comment re only adding to conditional terminator.
1 parent 69435ea commit a0a2306

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
@@ -7285,6 +7285,7 @@ static void addBranchWeigthToMiddleTerminator(VPlan &Plan, ElementCount VF,
72857285
VPBasicBlock *MiddleVPBB = Plan.getMiddleBlock();
72867286
auto *MiddleTerm =
72877287
dyn_cast_or_null<VPInstruction>(MiddleVPBB->getTerminator());
7288+
// Only add branch metadata if there is a (conditional) terminator.
72887289
if (!MiddleTerm)
72897290
return;
72907291

0 commit comments

Comments
 (0)