We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e2710c commit 31f9942Copy full SHA for 31f9942
llvm/test/Transforms/LoopInterchange/no-dependence-info.ll
@@ -2,6 +2,24 @@
2
3
target triple = "aarch64-unknown-linux-gnu"
4
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
+
23
; CHECK-NOT: Computed dependence info, invoking the transform.
24
25
define dso_local void @_foo(ptr noundef %a, ptr noundef %neg, ptr noundef %pos) {
0 commit comments