@@ -741,8 +741,7 @@ static VPWidenInductionRecipe *getOptimizableIVOf(VPValue *VPV) {
741741 VPValue *IVStep = WideIV->getStepValue ();
742742 switch (ID.getInductionOpcode ()) {
743743 case Instruction::Add:
744- return match (VPV, m_c_Binary<Instruction::Add>(m_Specific (WideIV),
745- m_Specific (IVStep)));
744+ return match (VPV, m_c_Add (m_Specific (WideIV), m_Specific (IVStep)));
746745 case Instruction::FAdd:
747746 return match (VPV, m_c_Binary<Instruction::FAdd>(m_Specific (WideIV),
748747 m_Specific (IVStep)));
@@ -2231,9 +2230,8 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
22312230
22322231 assert (all_of (Plan.getVFxUF ().users (),
22332232 [&Plan](VPUser *U) {
2234- return match (U, m_c_Binary<Instruction::Add>(
2235- m_Specific (Plan.getCanonicalIV ()),
2236- m_Specific (&Plan.getVFxUF ()))) ||
2233+ return match (U, m_c_Add (m_Specific (Plan.getCanonicalIV ()),
2234+ m_Specific (&Plan.getVFxUF ()))) ||
22372235 isa<VPWidenPointerInductionRecipe>(U);
22382236 }) &&
22392237 " Only users of VFxUF should be VPWidenPointerInductionRecipe and the "
@@ -2472,9 +2470,8 @@ void VPlanTransforms::canonicalizeEVLLoops(VPlan &Plan) {
24722470 // Replace CanonicalIVInc with EVL-PHI increment.
24732471 auto *CanonicalIV = cast<VPPhi>(&*HeaderVPBB->begin ());
24742472 VPValue *Backedge = CanonicalIV->getIncomingValue (1 );
2475- assert (match (Backedge,
2476- m_c_Binary<Instruction::Add>(m_Specific (CanonicalIV),
2477- m_Specific (&Plan.getVFxUF ()))) &&
2473+ assert (match (Backedge, m_c_Add (m_Specific (CanonicalIV),
2474+ m_Specific (&Plan.getVFxUF ()))) &&
24782475 " Unexpected canonical iv" );
24792476 Backedge->replaceAllUsesWith (EVLIncrement);
24802477
0 commit comments