Skip to content

Commit d5da6cc

Browse files
committed
!fixup add comment re only adding to conditional terminator.
1 parent c69b07a commit d5da6cc

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
@@ -7294,6 +7294,7 @@ static void addBranchWeigthToMiddleTerminator(VPlan &Plan, ElementCount VF,
72947294
VPBasicBlock *MiddleVPBB = Plan.getMiddleBlock();
72957295
auto *MiddleTerm =
72967296
dyn_cast_or_null<VPInstruction>(MiddleVPBB->getTerminator());
7297+
// Only add branch metadata if there is a (conditional) terminator.
72977298
if (!MiddleTerm)
72987299
return;
72997300

0 commit comments

Comments
 (0)