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
#include "llvm/Analysis/LoopAnalysisManager.h"
#include "llvm/IR/PassManager.h"
+#include <optional>
namespace llvm {
/// The max. distance between array elements accessed in a loop so that the
/// elements are classified to have temporal reuse.
- Optional<unsigned> TRT;
+ std::optional<unsigned> TRT;
const LoopInfo &LI;
ScalarEvolution &SE;