Skip to content

Commit 049bf68

Browse files
committed
Revert change caught by rebase
1 parent ada0d22 commit 049bf68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,13 @@ void VPPartialReductionRecipe::execute(VPTransformState &State) {
333333
State.setDebugLocFrom(getDebugLoc());
334334
auto &Builder = State.Builder;
335335

336+
assert(getOpcode() == Instruction::Add &&
337+
"Unhandled partial reduction opcode");
338+
336339
Value *BinOpVal = State.get(getOperand(0));
337340
Value *PhiVal = State.get(getOperand(1));
338341
assert(PhiVal && BinOpVal && "Phi and Mul must be set");
339342

340-
assert(getOpcode() == Instruction::Add &&
341-
"Unhandled partial reduction opcode");
342-
343343
Type *RetTy = PhiVal->getType();
344344

345345
CallInst *V = Builder.CreateIntrinsic(

0 commit comments

Comments
 (0)