@@ -924,7 +924,6 @@ static const SCEV *getExactSDiv(const SCEV *LHS, const SCEV *RHS,
924924// / value, and mutate S to point to a new SCEV with that value excluded.
925925static Immediate ExtractImmediate (const SCEV *&S, ScalarEvolution &SE) {
926926 const APInt *C;
927- const SCEV *Op1;
928927 if (match (S, m_scev_APInt (C))) {
929928 if (C->getSignificantBits () <= 64 ) {
930929 S = SE.getConstant (S->getType (), 0 );
@@ -945,8 +944,7 @@ static Immediate ExtractImmediate(const SCEV *&S, ScalarEvolution &SE) {
945944 SCEV::FlagAnyWrap);
946945 return Result;
947946 } else if (EnableVScaleImmediates &&
948- match (S, m_scev_Mul (m_scev_APInt (C), m_SCEV (Op1))) &&
949- isa<SCEVVScale>(Op1)) {
947+ match (S, m_scev_Mul (m_scev_APInt (C), m_SCEVVScale ()))) {
950948 S = SE.getConstant (S->getType (), 0 );
951949 return Immediate::getScalable (C->getSExtValue ());
952950 }
@@ -3332,9 +3330,8 @@ static bool canFoldIVIncExpr(const SCEV *IncExpr, Instruction *UserInst,
33323330 } else {
33333331 // Look for mul(vscale, constant), to detect a scalable offset.
33343332 const APInt *C;
3335- const SCEV *Op1;
3336- if (!match (IncExpr, m_scev_Mul (m_scev_APInt (C), m_SCEV (Op1))) ||
3337- !isa<SCEVVScale>(Op1) || C->getSignificantBits () > 64 )
3333+ if (!match (IncExpr, m_scev_Mul (m_scev_APInt (C), m_SCEVVScale ())) ||
3334+ C->getSignificantBits () > 64 )
33383335 return false ;
33393336 IncOffset = Immediate::getScalable (C->getSExtValue ());
33403337 }
0 commit comments