aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-06-18 23:07:11 -0700
committerKazu Hirata <kazu@google.com>2022-06-18 23:07:11 -0700
commit129b531c9c67fc50ef9dcb7d28d7081546213ac1 (patch)
treea8b4769c0d461caddac853ce26db0058acc710df /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent1e556f459b44dd0ca4073e932f66ecb6f40fe31a (diff)
downloadllvm-129b531c9c67fc50ef9dcb7d28d7081546213ac1.zip
llvm-129b531c9c67fc50ef9dcb7d28d7081546213ac1.tar.gz
llvm-129b531c9c67fc50ef9dcb7d28d7081546213ac1.tar.bz2
[llvm] Use value_or instead of getValueOr (NFC)
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp
index 1310abb..5d16a1e 100644
--- a/llvm/lib/Transforms/Utils/LoopUtils.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp
@@ -257,7 +257,7 @@ llvm::getOptionalElementCountLoopAttribute(const Loop *TheLoop) {
if (Width.hasValue()) {
Optional<int> IsScalable = getOptionalIntLoopAttribute(
TheLoop, "llvm.loop.vectorize.scalable.enable");
- return ElementCount::get(*Width, IsScalable.getValueOr(false));
+ return ElementCount::get(*Width, IsScalable.value_or(false));
}
return None;