[llvm] [LoopAccessAnalysis] Fix type mismatch (PR #183116)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 11 03:46:11 PDT 2026


================
@@ -250,8 +250,13 @@ static bool evaluatePtrAddRecAtMaxBTCWillNotWrap(
                          return true;
                        });
   if (DerefRK) {
-    DerefBytesSCEV =
-        SE.getUMaxExpr(DerefBytesSCEV, SE.getSCEV(DerefRK.IRArgValue));
+    const SCEV *DerefRKSCEV = SE.getSCEV(DerefRK.IRArgValue);
+    // Ensure both operands have the same type
----------------
fhahn wrote:

```suggestion
```

I think the code is quite clear, so comment seems a bit redundant.

https://github.com/llvm/llvm-project/pull/183116


More information about the llvm-commits mailing list