File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7211,6 +7211,8 @@ static void addRuntimeUnrollDisableMetaData(Loop *L) {
7211
7211
7212
7212
static Value *getStartValueFromReductionResult (VPInstruction *RdxResult) {
7213
7213
using namespace VPlanPatternMatch ;
7214
+ assert (RdxResult->getOpcode () == VPInstruction::ComputeFindLastIVResult &&
7215
+ " RdxResult must be ComputeFindLastIVResult" );
7214
7216
VPValue *StartVPV = RdxResult->getOperand (1 );
7215
7217
match (StartVPV, m_Freeze (m_VPValue (StartVPV)));
7216
7218
return StartVPV->getLiveInIRValue ();
Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPInstruction *R) {
90
90
" different types inferred for different operands" );
91
91
return IntegerType::get (Ctx, 1 );
92
92
case VPInstruction::ComputeAnyOfResult:
93
- return inferScalarType (R->getOperand (1 ));
94
93
case VPInstruction::ComputeFindLastIVResult:
95
94
case VPInstruction::ComputeReductionResult: {
96
95
auto *PhiR = cast<VPReductionPHIRecipe>(R->getOperand (0 ));
You can’t perform that action at this time.
0 commit comments