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 040a73a commit 0f40aa4Copy full SHA for 0f40aa4
llvm/lib/Analysis/ScalarEvolution.cpp
@@ -16100,7 +16100,7 @@ const SCEV *ScalarEvolution::LoopGuards::rewrite(const SCEV *Expr) const {
16100
SE.getAddExpr(Expr->getOperand(0), SE.getOne(Expr->getType()));
16101
if (const SCEV *S =
16102
Map.lookup(SE.getAddExpr(NewC, Expr->getOperand(1))))
16103
- return SE.getMinusSCEV(S, SE.getOne(Expr->getType()));
+ return SE.getAddExpr(S, SE.getMinusOne(Expr->getType()));
16104
}
16105
16106
0 commit comments