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) {
72117211
72127212static Value *getStartValueFromReductionResult (VPInstruction *RdxResult) {
72137213 using namespace VPlanPatternMatch ;
7214+ assert (RdxResult->getOpcode () == VPInstruction::ComputeFindLastIVResult &&
7215+ " RdxResult must be ComputeFindLastIVResult" );
72147216 VPValue *StartVPV = RdxResult->getOperand (1 );
72157217 match (StartVPV, m_Freeze (m_VPValue (StartVPV)));
72167218 return StartVPV->getLiveInIRValue ();
Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPInstruction *R) {
9090 " different types inferred for different operands" );
9191 return IntegerType::get (Ctx, 1 );
9292 case VPInstruction::ComputeAnyOfResult:
93- return inferScalarType (R->getOperand (1 ));
9493 case VPInstruction::ComputeFindLastIVResult:
9594 case VPInstruction::ComputeReductionResult: {
9695 auto *PhiR = cast<VPReductionPHIRecipe>(R->getOperand (0 ));
You can’t perform that action at this time.
0 commit comments