[llvm] [LAA] Be more careful when evaluating AddRecs at symbolic max BTC. (PR #128061)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 23 11:02:28 PDT 2025
================
@@ -130,10 +130,10 @@ define i32 @all_exits_dominate_latch_countable_exits_at_most_1000_iterations_kno
; CHECK-NEXT: %gep.A = getelementptr inbounds i32, ptr %A, i64 %iv
; CHECK-NEXT: Grouped accesses:
; CHECK-NEXT: Group GRP0:
-; CHECK-NEXT: (Low: %B High: (4004 + %B))
+; CHECK-NEXT: (Low: %B High: inttoptr (i64 -1 to ptr))
----------------
fhahn wrote:
That test was accessing one past the dereferenceable range (see the original bound of 4004 + %B), so I think using `-1` is the best we can do here. The name of the test was confusing, as it actually executes 1001 iterations.
There's now a variant that actually executes at most 1000 iterations (for which we don't pessimize the bounds) and this test has been renamed to 1001 iterations.
https://github.com/llvm/llvm-project/pull/128061
More information about the llvm-commits
mailing list