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 3df31ce commit 5180e68Copy full SHA for 5180e68
llvm/lib/Analysis/ScalarEvolution.cpp
@@ -16060,7 +16060,7 @@ const SCEV *ScalarEvolution::LoopGuards::rewrite(const SCEV *Expr) const {
16060
SE.getAddExpr(Expr->getOperand(0), SE.getOne(Expr->getType()));
16061
if (const SCEV *S =
16062
Map.lookup(SE.getAddExpr(NewC, Expr->getOperand(1))))
16063
- return SE.getMinusSCEV(S, SE.getOne(Expr->getType()));
+ return SE.getAddExpr(S, SE.getMinusOne(Expr->getType()));
16064
}
16065
16066
0 commit comments