aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ExpandVectorPredication.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@quicinc.com>2022-12-03 15:26:59 -0600
committerKrzysztof Parzyszek <kparzysz@quicinc.com>2022-12-04 14:25:11 -0600
commitf3b6dbfda8aa9d8215573caac8c5a47602f43fff (patch)
treed09ca06b6257c94e4cd114ae38e30f3120b3e046 /llvm/lib/CodeGen/ExpandVectorPredication.cpp
parente33243c950ac40d027ad8facbf7ccf0624604a16 (diff)
downloadllvm-f3b6dbfda8aa9d8215573caac8c5a47602f43fff.zip
llvm-f3b6dbfda8aa9d8215573caac8c5a47602f43fff.tar.gz
llvm-f3b6dbfda8aa9d8215573caac8c5a47602f43fff.tar.bz2
Instructions: convert Optional to std::optional
Diffstat (limited to 'llvm/lib/CodeGen/ExpandVectorPredication.cpp')
-rw-r--r--llvm/lib/CodeGen/ExpandVectorPredication.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ExpandVectorPredication.cpp b/llvm/lib/CodeGen/ExpandVectorPredication.cpp
index 1a3a060..23b70ce 100644
--- a/llvm/lib/CodeGen/ExpandVectorPredication.cpp
+++ b/llvm/lib/CodeGen/ExpandVectorPredication.cpp
@@ -29,6 +29,7 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
+#include <optional>
using namespace llvm;
@@ -122,7 +123,7 @@ static bool maySpeculateLanes(VPIntrinsic &VPI) {
if (isa<VPReductionIntrinsic>(VPI))
return false;
// Fallback to whether the intrinsic is speculatable.
- Optional<unsigned> OpcOpt = VPI.getFunctionalOpcode();
+ std::optional<unsigned> OpcOpt = VPI.getFunctionalOpcode();
unsigned FunctionalOpc = OpcOpt.value_or((unsigned)Instruction::Call);
return isSafeToSpeculativelyExecuteWithOpcode(FunctionalOpc, &VPI);
}