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 52a4a5f commit f0eb073Copy full SHA for f0eb073
llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
@@ -1249,7 +1249,7 @@ Value *SCEVExpander::tryToReuseLCSSAPhi(const SCEVAddRecExpr *S) {
1249
// offset, if the offset is simpler.
1250
const SCEV *Diff = SE.getMinusSCEV(S, ExitSCEV);
1251
const SCEV *Op = Diff;
1252
- match(Diff, m_scev_Add(m_SCEVConstant(), m_SCEV(Op)));
+ match(Op, m_scev_Add(m_SCEVConstant(), m_SCEV(Op)));
1253
match(Op, m_scev_Mul(m_scev_AllOnes(), m_SCEV(Op)));
1254
match(Op, m_scev_PtrToInt(m_SCEV(Op)));
1255
if (!isa<SCEVConstant, SCEVUnknown>(Op))
0 commit comments