aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-12-04 17:12:44 -0800
committerKazu Hirata <kazu@google.com>2022-12-04 17:12:44 -0800
commit3c09ed006ab35dd8faac03311b14f0857b01949c (patch)
treee23c93098eb6bdafea2936c2107c89159ba13bdd /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent4b7428e1516e073bf7ae8044519c5327b356e268 (diff)
downloadllvm-3c09ed006ab35dd8faac03311b14f0857b01949c.zip
llvm-3c09ed006ab35dd8faac03311b14f0857b01949c.tar.gz
llvm-3c09ed006ab35dd8faac03311b14f0857b01949c.tar.bz2
[llvm] Use std::nullopt instead of None in comments (NFC)
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 3062c63..e6fea6f 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -1433,7 +1433,7 @@ bool matchIncrement(const Instruction *IVInc, Instruction *&LHS,
/// If given \p PN is an inductive variable with value IVInc coming from the
/// backedge, and on each iteration it gets increased by Step, return pair
-/// <IVInc, Step>. Otherwise, return None.
+/// <IVInc, Step>. Otherwise, return std::nullopt.
static std::optional<std::pair<Instruction *, Constant *>>
getIVIncrement(const PHINode *PN, const LoopInfo *LI) {
const Loop *L = LI->getLoopFor(PN->getParent());