[Mlir-commits] [mlir] a6a57f0 - [Toy] Update tests to pass with top-down canonicalize pass. NFC
Chris Lattner
llvmlistbot at llvm.org
Tue May 25 14:51:11 PDT 2021
Author: Chris Lattner
Date: 2021-05-25T14:51:05-07:00
New Revision: a6a57f03be40cf2c546805155624a206649092ec
URL: https://github.com/llvm/llvm-project/commit/a6a57f03be40cf2c546805155624a206649092ec
DIFF: https://github.com/llvm/llvm-project/commit/a6a57f03be40cf2c546805155624a206649092ec.diff
LOG: [Toy] Update tests to pass with top-down canonicalize pass. NFC
Added:
Modified:
mlir/test/Examples/Toy/Ch5/affine-lowering.mlir
mlir/test/Examples/Toy/Ch6/affine-lowering.mlir
mlir/test/Examples/Toy/Ch7/affine-lowering.mlir
Removed:
################################################################################
diff --git a/mlir/test/Examples/Toy/Ch5/affine-lowering.mlir b/mlir/test/Examples/Toy/Ch5/affine-lowering.mlir
index a51d49770501e..4a4edec57d019 100644
--- a/mlir/test/Examples/Toy/Ch5/affine-lowering.mlir
+++ b/mlir/test/Examples/Toy/Ch5/affine-lowering.mlir
@@ -10,12 +10,12 @@ func @main() {
}
// CHECK-LABEL: func @main()
-// CHECK: [[VAL_0:%.*]] = constant 1.000000e+00 : f64
-// CHECK: [[VAL_1:%.*]] = constant 2.000000e+00 : f64
-// CHECK: [[VAL_2:%.*]] = constant 3.000000e+00 : f64
-// CHECK: [[VAL_3:%.*]] = constant 4.000000e+00 : f64
-// CHECK: [[VAL_4:%.*]] = constant 5.000000e+00 : f64
-// CHECK: [[VAL_5:%.*]] = constant 6.000000e+00 : f64
+// CHECK-DAG: [[VAL_0:%.*]] = constant 1.000000e+00 : f64
+// CHECK-DAG: [[VAL_1:%.*]] = constant 2.000000e+00 : f64
+// CHECK-DAG: [[VAL_2:%.*]] = constant 3.000000e+00 : f64
+// CHECK-DAG: [[VAL_3:%.*]] = constant 4.000000e+00 : f64
+// CHECK-DAG: [[VAL_4:%.*]] = constant 5.000000e+00 : f64
+// CHECK-DAG: [[VAL_5:%.*]] = constant 6.000000e+00 : f64
// CHECK: [[VAL_6:%.*]] = memref.alloc() : memref<3x2xf64>
// CHECK: [[VAL_7:%.*]] = memref.alloc() : memref<3x2xf64>
// CHECK: [[VAL_8:%.*]] = memref.alloc() : memref<2x3xf64>
@@ -41,12 +41,12 @@ func @main() {
// CHECK: memref.dealloc [[VAL_6]] : memref<3x2xf64>
// OPT-LABEL: func @main()
-// OPT: [[VAL_0:%.*]] = constant 1.000000e+00 : f64
-// OPT: [[VAL_1:%.*]] = constant 2.000000e+00 : f64
-// OPT: [[VAL_2:%.*]] = constant 3.000000e+00 : f64
-// OPT: [[VAL_3:%.*]] = constant 4.000000e+00 : f64
-// OPT: [[VAL_4:%.*]] = constant 5.000000e+00 : f64
-// OPT: [[VAL_5:%.*]] = constant 6.000000e+00 : f64
+// OPT-DAG: [[VAL_0:%.*]] = constant 1.000000e+00 : f64
+// OPT-DAG: [[VAL_1:%.*]] = constant 2.000000e+00 : f64
+// OPT-DAG: [[VAL_2:%.*]] = constant 3.000000e+00 : f64
+// OPT-DAG: [[VAL_3:%.*]] = constant 4.000000e+00 : f64
+// OPT-DAG: [[VAL_4:%.*]] = constant 5.000000e+00 : f64
+// OPT-DAG: [[VAL_5:%.*]] = constant 6.000000e+00 : f64
// OPT: [[VAL_6:%.*]] = memref.alloc() : memref<3x2xf64>
// OPT: [[VAL_7:%.*]] = memref.alloc() : memref<2x3xf64>
// OPT: affine.store [[VAL_0]], [[VAL_7]][0, 0] : memref<2x3xf64>
diff --git a/mlir/test/Examples/Toy/Ch6/affine-lowering.mlir b/mlir/test/Examples/Toy/Ch6/affine-lowering.mlir
index 7e0e5ead736cb..72e7e939efa14 100644
--- a/mlir/test/Examples/Toy/Ch6/affine-lowering.mlir
+++ b/mlir/test/Examples/Toy/Ch6/affine-lowering.mlir
@@ -10,12 +10,12 @@ func @main() {
}
// CHECK-LABEL: func @main()
-// CHECK: [[VAL_0:%.*]] = constant 1.000000e+00 : f64
-// CHECK: [[VAL_1:%.*]] = constant 2.000000e+00 : f64
-// CHECK: [[VAL_2:%.*]] = constant 3.000000e+00 : f64
-// CHECK: [[VAL_3:%.*]] = constant 4.000000e+00 : f64
-// CHECK: [[VAL_4:%.*]] = constant 5.000000e+00 : f64
-// CHECK: [[VAL_5:%.*]] = constant 6.000000e+00 : f64
+// CHECK-DAG: [[VAL_0:%.*]] = constant 1.000000e+00 : f64
+// CHECK-DAG: [[VAL_1:%.*]] = constant 2.000000e+00 : f64
+// CHECK-DAG: [[VAL_2:%.*]] = constant 3.000000e+00 : f64
+// CHECK-DAG: [[VAL_3:%.*]] = constant 4.000000e+00 : f64
+// CHECK-DAG: [[VAL_4:%.*]] = constant 5.000000e+00 : f64
+// CHECK-DAG: [[VAL_5:%.*]] = constant 6.000000e+00 : f64
// CHECK: [[VAL_6:%.*]] = memref.alloc() : memref<3x2xf64>
// CHECK: [[VAL_7:%.*]] = memref.alloc() : memref<3x2xf64>
// CHECK: [[VAL_8:%.*]] = memref.alloc() : memref<2x3xf64>
@@ -41,12 +41,12 @@ func @main() {
// CHECK: memref.dealloc [[VAL_6]] : memref<3x2xf64>
// OPT-LABEL: func @main()
-// OPT: [[VAL_0:%.*]] = constant 1.000000e+00 : f64
-// OPT: [[VAL_1:%.*]] = constant 2.000000e+00 : f64
-// OPT: [[VAL_2:%.*]] = constant 3.000000e+00 : f64
-// OPT: [[VAL_3:%.*]] = constant 4.000000e+00 : f64
-// OPT: [[VAL_4:%.*]] = constant 5.000000e+00 : f64
-// OPT: [[VAL_5:%.*]] = constant 6.000000e+00 : f64
+// OPT-DAG: [[VAL_0:%.*]] = constant 1.000000e+00 : f64
+// OPT-DAG: [[VAL_1:%.*]] = constant 2.000000e+00 : f64
+// OPT-DAG: [[VAL_2:%.*]] = constant 3.000000e+00 : f64
+// OPT-DAG: [[VAL_3:%.*]] = constant 4.000000e+00 : f64
+// OPT-DAG: [[VAL_4:%.*]] = constant 5.000000e+00 : f64
+// OPT-DAG: [[VAL_5:%.*]] = constant 6.000000e+00 : f64
// OPT: [[VAL_6:%.*]] = memref.alloc() : memref<3x2xf64>
// OPT: [[VAL_7:%.*]] = memref.alloc() : memref<2x3xf64>
// OPT: affine.store [[VAL_0]], [[VAL_7]][0, 0] : memref<2x3xf64>
diff --git a/mlir/test/Examples/Toy/Ch7/affine-lowering.mlir b/mlir/test/Examples/Toy/Ch7/affine-lowering.mlir
index e19d8f87ab07c..99b4cb08c867b 100644
--- a/mlir/test/Examples/Toy/Ch7/affine-lowering.mlir
+++ b/mlir/test/Examples/Toy/Ch7/affine-lowering.mlir
@@ -10,12 +10,12 @@ func @main() {
}
// CHECK-LABEL: func @main()
-// CHECK: [[VAL_0:%.*]] = constant 1.000000e+00 : f64
-// CHECK: [[VAL_1:%.*]] = constant 2.000000e+00 : f64
-// CHECK: [[VAL_2:%.*]] = constant 3.000000e+00 : f64
-// CHECK: [[VAL_3:%.*]] = constant 4.000000e+00 : f64
-// CHECK: [[VAL_4:%.*]] = constant 5.000000e+00 : f64
-// CHECK: [[VAL_5:%.*]] = constant 6.000000e+00 : f64
+// CHECK-DAG: [[VAL_0:%.*]] = constant 1.000000e+00 : f64
+// CHECK-DAG: [[VAL_1:%.*]] = constant 2.000000e+00 : f64
+// CHECK-DAG: [[VAL_2:%.*]] = constant 3.000000e+00 : f64
+// CHECK-DAG: [[VAL_3:%.*]] = constant 4.000000e+00 : f64
+// CHECK-DAG: [[VAL_4:%.*]] = constant 5.000000e+00 : f64
+// CHECK-DAG: [[VAL_5:%.*]] = constant 6.000000e+00 : f64
// CHECK: [[VAL_6:%.*]] = memref.alloc() : memref<3x2xf64>
// CHECK: [[VAL_7:%.*]] = memref.alloc() : memref<3x2xf64>
// CHECK: [[VAL_8:%.*]] = memref.alloc() : memref<2x3xf64>
@@ -41,12 +41,12 @@ func @main() {
// CHECK: memref.dealloc [[VAL_6]] : memref<3x2xf64>
// OPT-LABEL: func @main()
-// OPT: [[VAL_0:%.*]] = constant 1.000000e+00 : f64
-// OPT: [[VAL_1:%.*]] = constant 2.000000e+00 : f64
-// OPT: [[VAL_2:%.*]] = constant 3.000000e+00 : f64
-// OPT: [[VAL_3:%.*]] = constant 4.000000e+00 : f64
-// OPT: [[VAL_4:%.*]] = constant 5.000000e+00 : f64
-// OPT: [[VAL_5:%.*]] = constant 6.000000e+00 : f64
+// OPT-DAG: [[VAL_0:%.*]] = constant 1.000000e+00 : f64
+// OPT-DAG: [[VAL_1:%.*]] = constant 2.000000e+00 : f64
+// OPT-DAG: [[VAL_2:%.*]] = constant 3.000000e+00 : f64
+// OPT-DAG: [[VAL_3:%.*]] = constant 4.000000e+00 : f64
+// OPT-DAG: [[VAL_4:%.*]] = constant 5.000000e+00 : f64
+// OPT-DAG: [[VAL_5:%.*]] = constant 6.000000e+00 : f64
// OPT: [[VAL_6:%.*]] = memref.alloc() : memref<3x2xf64>
// OPT: [[VAL_7:%.*]] = memref.alloc() : memref<2x3xf64>
// OPT: affine.store [[VAL_0]], [[VAL_7]][0, 0] : memref<2x3xf64>
More information about the Mlir-commits
mailing list