-
Notifications
You must be signed in to change notification settings - Fork 15.5k
[DA] Replace delinearization for fixed size array #161822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
aa3e203
66cfa34
e89cb44
c7dc3af
795f2f8
968da89
ffd0bad
ca093f0
6badd83
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -149,11 +149,10 @@ define void @multidim_accesses(ptr %A) { | |
| ; CHECK-NEXT: Src: store i32 1, ptr %idx0, align 4 --> Dst: store i32 1, ptr %idx0, align 4 | ||
| ; CHECK-NEXT: da analyze - none! | ||
| ; CHECK-NEXT: Src: store i32 1, ptr %idx0, align 4 --> Dst: store i32 1, ptr %idx1, align 4 | ||
| ; CHECK-NEXT: da analyze - consistent output [0 0 0|<]! | ||
| ; CHECK-NEXT: da analyze - output [<= * *|<]! | ||
| ; CHECK-NEXT: Src: store i32 1, ptr %idx1, align 4 --> Dst: store i32 1, ptr %idx1, align 4 | ||
| ; CHECK-NEXT: da analyze - none! | ||
| ; | ||
| ; FIXME: the dependence distance is not constant. Distance vector should be [* * *|<]! | ||
|
Comment on lines
-152
to
-156
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change means fixing a known issue. |
||
| ; for (i = 0; i < 256; i++) | ||
| ; for (j = 0; j < 256; j++) | ||
| ; for (k = 0; k < 256; k++) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -148,7 +148,7 @@ define void @non_samebd0(ptr %A) nounwind uwtable ssp { | |
| ; CHECK-NEXT: Src: store i64 %i.013, ptr %arrayidx12, align 8 --> Dst: store i64 %i.013, ptr %arrayidx12, align 8 | ||
| ; CHECK-NEXT: da analyze - none! | ||
| ; CHECK-NEXT: Src: store i64 %i.013, ptr %arrayidx12, align 8 --> Dst: store i64 %l17.04, ptr %arrayidx24, align 8 | ||
| ; CHECK-NEXT: da analyze - output [-4 -3]! | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems regression, but less important, I believe. |
||
| ; CHECK-NEXT: da analyze - output [> *]! | ||
| ; CHECK-NEXT: Src: store i64 %l17.04, ptr %arrayidx24, align 8 --> Dst: store i64 %l17.04, ptr %arrayidx24, align 8 | ||
| ; CHECK-NEXT: da analyze - none! | ||
| ; | ||
|
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This also will be removed in #160924. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -149,10 +149,10 @@ exit: | |
| ;; for (int k = 0; k < 19; k++) | ||
| ;; b[i][j][k] = b[i][5][k + 1]; | ||
| ;; | ||
| ;; The direction vector of `b` is [= * <]. We cannot interchange all the loops. | ||
| ;; The direction vector of `b` is [= * *]. We cannot interchange all the loops. | ||
|
|
||
| ; CHECK: Dependency matrix before interchange: | ||
| ; CHECK-NEXT: = * < | ||
| ; CHECK-NEXT: = * * | ||
|
Comment on lines
+152
to
+155
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I remember I added this test in #139690. It should be sufficient to ensure no interchange occurs for this case. |
||
| ; CHECK-NEXT: Processing InnerLoopId = 2 and OuterLoopId = 1 | ||
| ; CHECK-NEXT: Failed interchange InnerLoopId = 2 and OuterLoopId = 1 due to dependence | ||
| ; CHECK-NEXT: Not interchanging loops. Cannot prove legality. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,10 @@ | |
|
|
||
| target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" | ||
|
|
||
| ; XFAIL: * | ||
| ; The transformation seems to have succeeded "accidentally". It should be fixed | ||
| ; by PR #156578. | ||
|
Comment on lines
+6
to
+8
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was planning to wait for #156578 to be merged, but the author has not responded for a while, I'd prefer to proceed this one first. I believe this test should be fixed by that PR. |
||
|
|
||
| ; CHECK-LABEL: sub_sub_less | ||
| ; CHECK: %j = phi | ||
| ; CHECK-NOT: %j.1 = phi | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this test will be removed in #160924.