diff options
author | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2022-12-05 15:19:30 -0800 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2022-12-06 12:49:32 -0800 |
commit | c589730ad5286fc784b8aacf2f0214149603f312 (patch) | |
tree | 7ef2fd8ada8da288c13d257707715f3ba79a9274 /llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | |
parent | 48634b3b935fd0bb325c08fce6313fadcdcb6f86 (diff) | |
download | llvm-c589730ad5286fc784b8aacf2f0214149603f312.zip llvm-c589730ad5286fc784b8aacf2f0214149603f312.tar.gz llvm-c589730ad5286fc784b8aacf2f0214149603f312.tar.bz2 |
[YAML] Convert Optional to std::optional
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp index 4d4674b..451a0f3 100644 --- a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp +++ b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp @@ -38,6 +38,7 @@ #include "llvm/Transforms/Utils/Cloning.h" #include "llvm/Transforms/Utils/ValueMapper.h" +#include <optional> #include <set> #include <sstream> @@ -1707,7 +1708,7 @@ void CHR::transformScopes(CHRScope *Scope, DenseSet<PHINode *> &TrivialPHIs) { BasicBlock *EntryBlock = FirstRegion->getEntry(); Region *LastRegion = Scope->RegInfos[Scope->RegInfos.size() - 1].R; BasicBlock *ExitBlock = LastRegion->getExit(); - Optional<uint64_t> ProfileCount = BFI.getBlockProfileCount(EntryBlock); + std::optional<uint64_t> ProfileCount = BFI.getBlockProfileCount(EntryBlock); if (ExitBlock) { // Insert a trivial phi at the exit block (where the CHR hot path and the |