File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -77,14 +77,17 @@ Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPInstruction *R) {
77
77
case VPInstruction::CalculateTripCountMinusVF:
78
78
case VPInstruction::CanonicalIVIncrementForPart:
79
79
case VPInstruction::AnyOf:
80
- case VPInstruction::LogicalAnd:
81
80
return SetResultTyFromOp ();
82
81
case VPInstruction::ExtractFromEnd: {
83
82
Type *BaseTy = inferScalarType (R->getOperand (0 ));
84
83
if (auto *VecTy = dyn_cast<VectorType>(BaseTy))
85
84
return VecTy->getElementType ();
86
85
return BaseTy;
87
86
}
87
+ case VPInstruction::LogicalAnd:
88
+ assert (inferScalarType (R->getOperand (0 ))->isIntegerTy (1 ) &&
89
+ " LogicalAnd operand should be bool" );
90
+ return IntegerType::get (Ctx, 1 );
88
91
case VPInstruction::PtrAdd:
89
92
// Return the type based on the pointer argument (i.e. first operand).
90
93
return inferScalarType (R->getOperand (0 ));
You can’t perform that action at this time.
0 commit comments