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 4404569 commit 2e85b9fCopy full SHA for 2e85b9f
llvm/lib/Analysis/DependenceAnalysis.cpp
@@ -2863,8 +2863,8 @@ static std::optional<APInt> getConstanCoefficient(const SCEV *Expr) {
2863
if (const auto *Constant = dyn_cast<SCEVConstant>(Expr))
2864
return Constant->getAPInt();
2865
if (const auto *Product = dyn_cast<SCEVMulExpr>(Expr))
2866
- if (Product->hasNoSignedWrap())
2867
- if (auto *Constant = dyn_cast<SCEVConstant>(Product->getOperand(0)))
+ if (const auto *Constant = dyn_cast<SCEVConstant>(Product->getOperand(0)))
+ if (Product->hasNoSignedWrap())
2868
2869
return std::nullopt;
2870
}
0 commit comments