We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a92bfaa commit 620a515Copy full SHA for 620a515
llvm/lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
@@ -134,7 +134,8 @@ void PlainCFGBuilder::fixPhiNodes() {
134
if (isHeaderBB(Phi->getParent(), L)) {
135
// For header phis, make sure the incoming value from the loop
136
// predecessor is the first operand of the recipe.
137
- assert(Phi->getNumOperands() == 2);
+ assert(Phi->getNumOperands() == 2 &&
138
+ "header phi must have exactly 2 operands");
139
BasicBlock *LoopPred = L->getLoopPredecessor();
140
VPPhi->addOperand(
141
getOrCreateVPOperand(Phi->getIncomingValueForBlock(LoopPred)));
0 commit comments