Skip to content

Commit 31f9942

Browse files
committed
Address review comments
1 parent 7e2710c commit 31f9942

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

llvm/test/Transforms/LoopInterchange/no-dependence-info.ll

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
target triple = "aarch64-unknown-linux-gnu"
44

5+
; For the below test, backedge count cannot be computed.
6+
; Computing backedge count requires only SCEV and should
7+
; not require dependence info.
8+
;
9+
; void foo(int *a, int *neg, int *pos) {
10+
; int p = 0, q = 0;
11+
; for (unsigned int i = 0; i < 32; ++i) {
12+
; for (unsigned int j = 0; j < 32; ++j) {
13+
; if (a[i] < 0){
14+
; neg[p++] = a[i];
15+
; }
16+
; else {
17+
; pos[q++] = a[i];
18+
; }
19+
; }
20+
; }
21+
;}
22+
523
; CHECK-NOT: Computed dependence info, invoking the transform.
624

725
define dso_local void @_foo(ptr noundef %a, ptr noundef %neg, ptr noundef %pos) {

0 commit comments

Comments
 (0)