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] Drop alias scope metadata that is not valid across iterations
LAA currently adds memory locations with their original AATags to
AST. However, scoped alias AATags may be valid only within one
loop iteration, while LAA reasons across iterations.
Fix this by determining which alias scopes are defined inside the
loop, and drop AATags that reference these scopes.
Fixes#79137.
Copy file name to clipboardExpand all lines: llvm/test/Analysis/LoopAccessAnalysis/noalias-scope-decl.ll
+10-1
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,17 @@
7
7
definevoid@test_scope_in_loop(ptr%arg, i64%num) {
8
8
; CHECK-LABEL: 'test_scope_in_loop'
9
9
; CHECK-NEXT: loop:
10
-
; CHECK-NEXT: Memory dependences are safe
10
+
; 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
11
+
; CHECK-NEXT: Backward loop carried data dependence.
0 commit comments