You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[LAA] Pass maximum stride to isSafeDependenceDistance. (#90036)
As discussed in #88039, support
different strides with isSafeDependenceDistance by passing the maximum
of both strides.
isSafeDependenceDistance tries to prove that
|Dist| > BackedgeTakenCount * Step
holds. Chosing the maximum stride computes the maximum range accesed by
the loop for all strides.
PR: #90036
; CHECK-NEXT: Report: unsafe dependent memory operations in loop. Use #pragma clang loop distribute(enable) to allow loop distribution to attempt to isolate the offending operations into a separate loop
84
-
; CHECK-NEXT: Unknown data dependence.
79
+
; CHECK-NEXT: Memory dependences are safe
85
80
; CHECK-NEXT: Dependences:
86
-
; CHECK-NEXT: Unknown:
87
-
; CHECK-NEXT: %l = load i32, ptr %gep, align 4 ->
88
-
; CHECK-NEXT: store i32 %add, ptr %gep.mul.2, align 4
0 commit comments