[llvm] 97b8a54 - [LoopCacheAnalysis] Minor test case update

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 29 15:47:37 PDT 2022


Author: Congzhe Cao
Date: 2022-04-29T18:47:20-04:00
New Revision: 97b8a54b25f326cac8324e0ee3adde271799951c

URL: https://github.com/llvm/llvm-project/commit/97b8a54b25f326cac8324e0ee3adde271799951c
DIFF: https://github.com/llvm/llvm-project/commit/97b8a54b25f326cac8324e0ee3adde271799951c.diff

LOG: [LoopCacheAnalysis] Minor test case update

Changed the test case in https://reviews.llvm.org/D122857
from using `CHECK` to using `CHECK-DAG` to incorporate
nondeterministic output.

Added: 
    

Modified: 
    llvm/test/Analysis/LoopCacheAnalysis/PowerPC/LoopnestFixedSize.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/LoopnestFixedSize.ll b/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/LoopnestFixedSize.ll
index fa85b71ce094f..f947106dd0c39 100644
--- a/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/LoopnestFixedSize.ll
+++ b/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/LoopnestFixedSize.ll
@@ -6,8 +6,8 @@ target triple = "powerpc64le-unknown-linux-gnu"
 ; Check delinearization in loop cache analysis can handle fixed-size arrays.
 ; The IR is copied from llvm/test/Analysis/DependenceAnalysis/SimpleSIVNoValidityCheckFixedSize.ll
 
-; CHECK: Loop 'for.body' has cost = 4186116
-; CHECK: Loop 'for.body4' has cost = 128898
+; CHECK-DAG: Loop 'for.body' has cost = 4186116
+; CHECK-DAG: Loop 'for.body4' has cost = 128898
 
 ;; #define N 1024
 ;; #define M 2048
@@ -48,8 +48,8 @@ for.end13:                                        ; preds = %for.inc11
 }
 
 
-; CHECK: Loop 'for.body' has cost = 4186116
-; CHECK: Loop 'for.body4' has cost = 128898
+; CHECK-DAG: Loop 'for.body' has cost = 4186116
+; CHECK-DAG: Loop 'for.body4' has cost = 128898
 
 define void @t2([2048 x i32]* %a) {
 entry:
@@ -83,11 +83,11 @@ for.end13:                                        ; preds = %for.inc11
 
 declare [2048 x i32]* @func_with_returned_arg([2048 x i32]* returned %arg)
 
-; CHECK: Loop 'for.body' has cost = 4472886244958208
-; CHECK: Loop 'for.body4' has cost = 4472886244958208
-; CHECK: Loop 'for.body8' has cost = 4472886244958208
-; CHECK: Loop 'for.body12' has cost = 4472886244958208
-; CHECK: Loop 'for.body16' has cost = 137728168833024
+; CHECK-DAG: Loop 'for.body' has cost = 4472886244958208
+; CHECK-DAG: Loop 'for.body4' has cost = 4472886244958208
+; CHECK-DAG: Loop 'for.body8' has cost = 4472886244958208
+; CHECK-DAG: Loop 'for.body12' has cost = 4472886244958208
+; CHECK-DAG: Loop 'for.body16' has cost = 137728168833024
 
 
 ;; #define N 1024


        


More information about the llvm-commits mailing list