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 2b7cbe5 commit 4dd7033Copy full SHA for 4dd7033
llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
@@ -91,11 +91,10 @@ Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPInstruction *R) {
91
"different types inferred for different operands");
92
return IntegerType::get(Ctx, 1);
93
case VPInstruction::ComputeAnyOfResult:
94
+ return inferScalarType(R->getOperand(1));
95
case VPInstruction::ComputeFindIVResult:
96
case VPInstruction::ComputeReductionResult: {
- auto *PhiR = cast<VPReductionPHIRecipe>(R->getOperand(0));
97
- auto *OrigPhi = cast<PHINode>(PhiR->getUnderlyingValue());
98
- return OrigPhi->getType();
+ return inferScalarType(R->getOperand(0));
99
}
100
case VPInstruction::ExplicitVectorLength:
101
return Type::getIntNTy(Ctx, 32);
0 commit comments