[Scalar] Use std::optional in InductiveRangeCheckElimination.cpp (NFC)

This is part of an effort to migrate from llvm::Optional to
std::optional:

https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
This commit is contained in:
Kazu Hirata 2022-11-25 23:59:45 -08:00
parent b54cd3f09c
commit 7fc772bbdc
1 changed files with 3 additions and 2 deletions

View File

@ -93,6 +93,7 @@
#include <cassert>
#include <iterator>
#include <limits>
#include <optional>
#include <utility>
#include <vector>
@ -547,8 +548,8 @@ class LoopConstrainer {
// space of the main loop.
struct SubRanges {
Optional<const SCEV *> LowLimit;
Optional<const SCEV *> HighLimit;
std::optional<const SCEV *> LowLimit;
std::optional<const SCEV *> HighLimit;
};
// Compute a safe set of limits for the main loop to run in -- effectively the