diff options
Diffstat (limited to 'llvm/lib/Transforms/IPO/SyntheticCountsPropagation.cpp')
| -rw-r--r-- | llvm/lib/Transforms/IPO/SyntheticCountsPropagation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/SyntheticCountsPropagation.cpp b/llvm/lib/Transforms/IPO/SyntheticCountsPropagation.cpp index c7d54b8cdeb0..d46f9a6c6757 100644 --- a/llvm/lib/Transforms/IPO/SyntheticCountsPropagation.cpp +++ b/llvm/lib/Transforms/IPO/SyntheticCountsPropagation.cpp @@ -101,7 +101,7 @@ PreservedAnalyses SyntheticCountsPropagation::run(Module &M, // parameter. auto GetCallSiteProfCount = [&](const CallGraphNode *, const CallGraphNode::CallRecord &Edge) { - Optional<Scaled64> Res = None; + std::optional<Scaled64> Res; if (!Edge.first) return Res; CallBase &CB = *cast<CallBase>(*Edge.first); @@ -115,7 +115,7 @@ PreservedAnalyses SyntheticCountsPropagation::run(Module &M, Scaled64 BBCount(BFI.getBlockFreq(CSBB).getFrequency(), 0); BBCount /= EntryFreq; BBCount *= Counts[Caller]; - return Optional<Scaled64>(BBCount); + return std::optional<Scaled64>(BBCount); }; CallGraph CG(M); |
