aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ExpandVectorPredication.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-07-19 19:50:43 -0700
committerKazu Hirata <kazu@google.com>2022-07-19 19:50:43 -0700
commitbbbb4393ee67a470016291bb3dc8abc777132cf0 (patch)
treec1fde5992e3c234ce53999eee3a41a2590e8382f /llvm/lib/CodeGen/ExpandVectorPredication.cpp
parent57224ff4a6833dca1f17568cc9cf77f9579030ae (diff)
downloadllvm-bbbb4393ee67a470016291bb3dc8abc777132cf0.zip
llvm-bbbb4393ee67a470016291bb3dc8abc777132cf0.tar.gz
llvm-bbbb4393ee67a470016291bb3dc8abc777132cf0.tar.bz2
[CodeGen] Use value_or instead of getValueOr (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/ExpandVectorPredication.cpp')
-rw-r--r--llvm/lib/CodeGen/ExpandVectorPredication.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/ExpandVectorPredication.cpp b/llvm/lib/CodeGen/ExpandVectorPredication.cpp
index 515484c..ed95437 100644
--- a/llvm/lib/CodeGen/ExpandVectorPredication.cpp
+++ b/llvm/lib/CodeGen/ExpandVectorPredication.cpp
@@ -444,15 +444,15 @@ CachingVPExpander::expandPredicationInMemoryIntrinsic(IRBuilder<> &Builder,
cast<VectorType>(DataParam->getType())->getElementType();
NewMemoryInst = Builder.CreateMaskedScatter(
DataParam, PtrParam,
- AlignOpt.getValueOr(DL.getPrefTypeAlign(ElementType)), MaskParam);
+ AlignOpt.value_or(DL.getPrefTypeAlign(ElementType)), MaskParam);
break;
}
case Intrinsic::vp_gather: {
auto *ElementType = cast<VectorType>(VPI.getType())->getElementType();
NewMemoryInst = Builder.CreateMaskedGather(
VPI.getType(), PtrParam,
- AlignOpt.getValueOr(DL.getPrefTypeAlign(ElementType)), MaskParam,
- nullptr, VPI.getName());
+ AlignOpt.value_or(DL.getPrefTypeAlign(ElementType)), MaskParam, nullptr,
+ VPI.getName());
break;
}
}