aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/InlineCost.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-12-04 17:31:16 -0800
committerKazu Hirata <kazu@google.com>2022-12-04 17:31:17 -0800
commit9f252e5567041bcafe20980263381e4ad3c8986e (patch)
treea098f0f3aa12b0a85567aac06995996d91f97191 /llvm/lib/Analysis/InlineCost.cpp
parent70c73d1b7274bcff2bfb2e688fe7eabbf2fbf889 (diff)
downloadllvm-9f252e5567041bcafe20980263381e4ad3c8986e.zip
llvm-9f252e5567041bcafe20980263381e4ad3c8986e.tar.gz
llvm-9f252e5567041bcafe20980263381e4ad3c8986e.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/Analysis/InlineCost.cpp')
-rw-r--r--llvm/lib/Analysis/InlineCost.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp
index 9a5f985..ab414f6 100644
--- a/llvm/lib/Analysis/InlineCost.cpp
+++ b/llvm/lib/Analysis/InlineCost.cpp
@@ -813,8 +813,8 @@ class InlineCostCallAnalyzer final : public CallAnalyzer {
}
// Determine whether we should inline the given call site, taking into account
- // both the size cost and the cycle savings. Return None if we don't have
- // suficient profiling information to determine.
+ // both the size cost and the cycle savings. Return std::nullopt if we don't
+ // have suficient profiling information to determine.
std::optional<bool> costBenefitAnalysis() {
if (!CostBenefitAnalysisEnabled)
return std::nullopt;