Skip to content

Commit 23f9e8a

Browse files
committed
Fix the ICE when inferScalarTypeForRecipe
1 parent 513f5dd commit 23f9e8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPInstruction *R) {
6262
case Instruction::ICmp:
6363
case VPInstruction::ActiveLaneMask:
6464
return inferScalarType(R->getOperand(1));
65+
case VPInstruction::ExplicitVectorLength:
66+
return IntegerType::get(Ctx, 32);
6567
case VPInstruction::FirstOrderRecurrenceSplice:
6668
case VPInstruction::Not:
6769
return SetResultTyFromOp();

0 commit comments

Comments
 (0)