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 68a20f0 commit 4f1d8ecCopy full SHA for 4f1d8ec
llvm/lib/Analysis/DependenceAnalysis.cpp
@@ -2831,8 +2831,8 @@ static std::optional<APInt> getConstanCoefficient(const SCEV *Expr) {
2831
if (const auto *Constant = dyn_cast<SCEVConstant>(Expr))
2832
return Constant->getAPInt();
2833
if (const auto *Product = dyn_cast<SCEVMulExpr>(Expr))
2834
- if (Product->hasNoSignedWrap())
2835
- if (auto *Constant = dyn_cast<SCEVConstant>(Product->getOperand(0)))
+ if (const auto *Constant = dyn_cast<SCEVConstant>(Product->getOperand(0)))
+ if (Product->hasNoSignedWrap())
2836
2837
return std::nullopt;
2838
}
0 commit comments