Skip to content

Commit 5180e68

Browse files
committed
!fixup getMinsSCEV -> getAddExpr + getMinusOne.
1 parent 3df31ce commit 5180e68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16060,7 +16060,7 @@ const SCEV *ScalarEvolution::LoopGuards::rewrite(const SCEV *Expr) const {
1606016060
SE.getAddExpr(Expr->getOperand(0), SE.getOne(Expr->getType()));
1606116061
if (const SCEV *S =
1606216062
Map.lookup(SE.getAddExpr(NewC, Expr->getOperand(1))))
16063-
return SE.getMinusSCEV(S, SE.getOne(Expr->getType()));
16063+
return SE.getAddExpr(S, SE.getMinusOne(Expr->getType()));
1606416064
}
1606516065
}
1606616066

0 commit comments

Comments
 (0)