Skip to content

Commit c8ed6b6

Browse files
committed
[DA] Update comment
1 parent 0a1673b commit c8ed6b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Analysis/DependenceAnalysis.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2372,9 +2372,8 @@ bool DependenceInfo::testMIV(const SCEV *Src, const SCEV *Dst,
23722372
banerjeeMIVtest(Src, Dst, Loops, Result);
23732373
}
23742374

2375-
23762375
// Given a product, e.g., 10*X*Y, returns the first constant operand,
2377-
// in this case 10. If there is no constant part, returns NULL.
2376+
// in this case 10. If there is no constant part, returns std::nullopt.
23782377
static std::optional<APInt> getConstantPart(const SCEV *Expr) {
23792378
if (const auto *Constant = dyn_cast<SCEVConstant>(Expr))
23802379
return Constant->getAPInt();

0 commit comments

Comments
 (0)