diff options
Diffstat (limited to 'llvm/lib/Analysis/InlineCost.cpp')
-rw-r--r-- | llvm/lib/Analysis/InlineCost.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp index e17b908..96b733d 100644 --- a/llvm/lib/Analysis/InlineCost.cpp +++ b/llvm/lib/Analysis/InlineCost.cpp @@ -44,6 +44,7 @@ #include "llvm/Support/raw_ostream.h" #include <climits> #include <limits> +#include <optional> using namespace llvm; @@ -489,7 +490,7 @@ public: InlineResult analyze(); - Optional<Constant *> getSimplifiedValue(Instruction *I) { + std::optional<Constant *> getSimplifiedValue(Instruction *I) { if (SimplifiedValues.find(I) != SimplifiedValues.end()) return SimplifiedValues[I]; return None; @@ -814,7 +815,7 @@ 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. - Optional<bool> costBenefitAnalysis() { + std::optional<bool> costBenefitAnalysis() { if (!CostBenefitAnalysisEnabled) return None; |