diff options
author | Whitney Tsang <whitney.uwaterloo@gmail.com> | 2019-08-09 16:18:22 +0000 |
---|---|---|
committer | Whitney Tsang <whitney.uwaterloo@gmail.com> | 2019-08-09 16:18:22 +0000 |
commit | 3caf9af6c6fcb2f6ddf05de34d4809326e8dd90f (patch) | |
tree | 5297af7dd49368499f0e810b30f982f2e227fd81 | |
parent | c6c00cdf2e7e9e25bcfb876d2424d3e6dcfacd90 (diff) | |
download | bcm5719-llvm-3caf9af6c6fcb2f6ddf05de34d4809326e8dd90f.tar.gz bcm5719-llvm-3caf9af6c6fcb2f6ddf05de34d4809326e8dd90f.zip |
Title: Improve Loop Cache Analysis LIT tests.
Summary: Make LIT tests unsensitive to analysis output order.
Authored By: etiotto
llvm-svn: 368450
5 files changed, 16 insertions, 16 deletions
diff --git a/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/loads-store.ll b/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/loads-store.ll index 3eb21c25f4b..b73abcac98d 100644 --- a/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/loads-store.ll +++ b/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/loads-store.ll @@ -10,9 +10,9 @@ target triple = "powerpc64le-unknown-linux-gnu" ; A[i][k][j] += B[i][k][j] + C[i][j][k]; ; } -; CHECK: Loop 'for.i' has cost = 3000000 -; CHECK-NEXT: Loop 'for.k' has cost = 2030000 -; CHECK-NEXT: Loop 'for.j' has cost = 1060000 +; CHECK-DAG: Loop 'for.i' has cost = 3000000 +; CHECK-DAG: Loop 'for.k' has cost = 2030000 +; CHECK-DAG: Loop 'for.j' has cost = 1060000 define void @foo(i64 %n, i64 %m, i64 %o, i32* %A, i32* %B, i32* %C) { entry: diff --git a/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/matmul.ll b/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/matmul.ll index 08ceb569eac..c7342fe32ee 100644 --- a/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/matmul.ll +++ b/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/matmul.ll @@ -10,9 +10,9 @@ target triple = "powerpc64le-unknown-linux-gnu" ; C[i][j] = C[i][j] + A[i][k] * B[k][j]; ; } -; CHECK:Loop 'for.i' has cost = 2010000 -; CHECK-NEXT:Loop 'for.k' has cost = 1040000 -; CHECK-NEXT:Loop 'for.j' has cost = 70000 +; CHECK-DAG:Loop 'for.i' has cost = 2010000 +; CHECK-DAG:Loop 'for.k' has cost = 1040000 +; CHECK-DAG:Loop 'for.j' has cost = 70000 define void @matmul(i64 %n, i64 %m, i64 %o, i32* %A, i32* %B, i32* %C) { entry: diff --git a/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/matvecmul.ll b/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/matvecmul.ll index 1d673d7d3b6..313795251b4 100644 --- a/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/matvecmul.ll +++ b/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/matvecmul.ll @@ -14,11 +14,11 @@ target triple = "powerpc64le-unknown-linux-gnu" ; y[k+1][j][i][l] = y[k+1][j][i][l] + b[k][j][i][m][l]*x[k][j][i][m] ; } -; CHECK: Loop 'k_loop' has cost = 30000000000 -; CHECK-NEXT: Loop 'j_loop' has cost = 30000000000 -; CHECK-NEXT: Loop 'i_loop' has cost = 30000000000 -; CHECK-NEXT: Loop 'm_loop' has cost = 10700000000 -; CHECK-NEXT: Loop 'l_loop' has cost = 1300000000 +; CHECK-DAG: Loop 'k_loop' has cost = 30000000000 +; CHECK-DAG: Loop 'j_loop' has cost = 30000000000 +; CHECK-DAG: Loop 'i_loop' has cost = 30000000000 +; CHECK-DAG: Loop 'm_loop' has cost = 10700000000 +; CHECK-DAG: Loop 'l_loop' has cost = 1300000000 %_elem_type_of_double = type <{ double }> diff --git a/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/single-store.ll b/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/single-store.ll index e20b9b98ee5..cce6731fb2a 100644 --- a/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/single-store.ll +++ b/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/single-store.ll @@ -10,9 +10,9 @@ target triple = "powerpc64le-unknown-linux-gnu" ; A[2*i+3][3*j-4][2*k+7] = 1; ; } -; CHECK: Loop 'for.i' has cost = 1000000 -; CHECK-NEXT: Loop 'for.j' has cost = 1000000 -; CHECK-NEXT: Loop 'for.k' has cost = 60000 +; CHECK-DAG: Loop 'for.i' has cost = 1000000 +; CHECK-DAG: Loop 'for.j' has cost = 1000000 +; CHECK-DAG: Loop 'for.k' has cost = 60000 define void @foo(i64 %n, i64 %m, i64 %o, i32* %A) { entry: diff --git a/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/stencil.ll b/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/stencil.ll index b799595f65a..1f1515435e1 100644 --- a/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/stencil.ll +++ b/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/stencil.ll @@ -11,8 +11,8 @@ target triple = "powerpc64le-unknown-linux-gnu" ; } ; } -; CHECK: Loop 'for.i' has cost = 20600 -; CHECK-NEXT: Loop 'for.j' has cost = 800 +; CHECK-DAG: Loop 'for.i' has cost = 20600 +; CHECK-DAG: Loop 'for.j' has cost = 800 define void @foo(i64 %n, i64 %m, i32* %A, i32* %B, i32* %C) { entry: |