diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-18 23:07:11 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-18 23:07:11 -0700 |
commit | 129b531c9c67fc50ef9dcb7d28d7081546213ac1 (patch) | |
tree | a8b4769c0d461caddac853ce26db0058acc710df /llvm/lib/CodeGen/ExpandVectorPredication.cpp | |
parent | 1e556f459b44dd0ca4073e932f66ecb6f40fe31a (diff) | |
download | llvm-129b531c9c67fc50ef9dcb7d28d7081546213ac1.zip llvm-129b531c9c67fc50ef9dcb7d28d7081546213ac1.tar.gz llvm-129b531c9c67fc50ef9dcb7d28d7081546213ac1.tar.bz2 |
[llvm] Use value_or instead of getValueOr (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/ExpandVectorPredication.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ExpandVectorPredication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ExpandVectorPredication.cpp b/llvm/lib/CodeGen/ExpandVectorPredication.cpp index fbb89a7..7883a48 100644 --- a/llvm/lib/CodeGen/ExpandVectorPredication.cpp +++ b/llvm/lib/CodeGen/ExpandVectorPredication.cpp @@ -119,7 +119,7 @@ static bool maySpeculateLanes(VPIntrinsic &VPI) { return false; // Fallback to whether the intrinsic is speculatable. Optional<unsigned> OpcOpt = VPI.getFunctionalOpcode(); - unsigned FunctionalOpc = OpcOpt.getValueOr((unsigned)Instruction::Call); + unsigned FunctionalOpc = OpcOpt.value_or((unsigned)Instruction::Call); return isSafeToSpeculativelyExecuteWithOpcode(FunctionalOpc, cast<Operator>(&VPI)); } |