Skip to content

Commit f0eb073

Browse files
committed
!fixup Diff -> Op.
1 parent 52a4a5f commit f0eb073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ Value *SCEVExpander::tryToReuseLCSSAPhi(const SCEVAddRecExpr *S) {
12491249
// offset, if the offset is simpler.
12501250
const SCEV *Diff = SE.getMinusSCEV(S, ExitSCEV);
12511251
const SCEV *Op = Diff;
1252-
match(Diff, m_scev_Add(m_SCEVConstant(), m_SCEV(Op)));
1252+
match(Op, m_scev_Add(m_SCEVConstant(), m_SCEV(Op)));
12531253
match(Op, m_scev_Mul(m_scev_AllOnes(), m_SCEV(Op)));
12541254
match(Op, m_scev_PtrToInt(m_SCEV(Op)));
12551255
if (!isa<SCEVConstant, SCEVUnknown>(Op))

0 commit comments

Comments
 (0)