[llvm] SCEV: avoid conflating unknown TC with wrap (NFC) (PR #94162)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 2 09:11:11 PDT 2024
================
@@ -6463,7 +6463,7 @@ getRangeForUnknownRecurrence(const SCEVUnknown *U) {
// TODO: Handle the power function forms some day.
return FullSet;
- unsigned TC = getSmallConstantMaxTripCount(L);
+ std::optional<unsigned> TC = getSmallConstantMaxTripCount(L);
if (!TC || TC >= BitWidth)
----------------
tschuett wrote:
```
TC >= BitWidth
```
It compiles? We compare an optional to a BitWidth?
https://github.com/llvm/llvm-project/pull/94162
More information about the llvm-commits
mailing list