[Scalar] Use std::optional in LoopStrengthReduce.cpp (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 27 Nov 2022 01:26:57 +0000 (17:26 -0800)
committerKazu Hirata <kazu@google.com>
Sun, 27 Nov 2022 01:26:57 +0000 (17:26 -0800)
commitf207cf1d93787696ce130a1deeb1f11196e528ec
tree805ad2a05b83ac073cbe3c024483d2198d7f8eac
parent42c40f7e3505fa921b59a6079779f68bead8bcec
[Scalar] Use std::optional in LoopStrengthReduce.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
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp