summaryrefslogtreecommitdiffstats
path: root/mlir/test/Transforms
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-10-24 15:00:36 -0700
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-10-24 15:01:09 -0700
commit2b61b7979eb59df579a3a4bf6fe768ddf2a556f4 (patch)
treeecbca8b29c18ac250c144271dae96ed3859d64af /mlir/test/Transforms
parentef43b5653830641766997c10699682f90f1c24da (diff)
downloadbcm5719-llvm-2b61b7979eb59df579a3a4bf6fe768ddf2a556f4.tar.gz
bcm5719-llvm-2b61b7979eb59df579a3a4bf6fe768ddf2a556f4.zip
Convert the Canonicalize and CSE passes to generic Operation Passes.
This allows for them to be used on other non-function, or even other function-like, operations. The algorithms are already generic, so this is simply changing the derived pass type. The majority of this change is just ensuring that the nesting of these passes remains the same, as the pass manager won't auto-nest them anymore. PiperOrigin-RevId: 276573038
Diffstat (limited to 'mlir/test/Transforms')
-rw-r--r--mlir/test/Transforms/canonicalize.mlir2
-rw-r--r--mlir/test/Transforms/cse.mlir2
-rw-r--r--mlir/test/Transforms/test-canonicalize.mlir2
3 files changed, 3 insertions, 3 deletions
diff --git a/mlir/test/Transforms/canonicalize.mlir b/mlir/test/Transforms/canonicalize.mlir
index cecd666889e..fc8e92ed582 100644
--- a/mlir/test/Transforms/canonicalize.mlir
+++ b/mlir/test/Transforms/canonicalize.mlir
@@ -1,4 +1,4 @@
-// RUN: mlir-opt %s -canonicalize | FileCheck %s
+// RUN: mlir-opt %s -pass-pipeline='func(canonicalize)' | FileCheck %s
// CHECK-LABEL: func @test_subi_zero
func @test_subi_zero(%arg0: i32) -> i32 {
diff --git a/mlir/test/Transforms/cse.mlir b/mlir/test/Transforms/cse.mlir
index 0e26834d0c0..8cc41e6a1a0 100644
--- a/mlir/test/Transforms/cse.mlir
+++ b/mlir/test/Transforms/cse.mlir
@@ -1,4 +1,4 @@
-// RUN: mlir-opt %s -cse | FileCheck %s
+// RUN: mlir-opt %s -pass-pipeline='func(cse)' | FileCheck %s
// CHECK-DAG: #map0 = (d0) -> (d0 mod 2)
#map0 = (d0) -> (d0 mod 2)
diff --git a/mlir/test/Transforms/test-canonicalize.mlir b/mlir/test/Transforms/test-canonicalize.mlir
index fdbfd591a7d..dfcc156912b 100644
--- a/mlir/test/Transforms/test-canonicalize.mlir
+++ b/mlir/test/Transforms/test-canonicalize.mlir
@@ -1,4 +1,4 @@
-// RUN: mlir-opt %s -canonicalize | FileCheck %s
+// RUN: mlir-opt %s -pass-pipeline='func(canonicalize)' | FileCheck %s
// CHECK-LABEL: func @remove_op_with_inner_ops_pattern
func @remove_op_with_inner_ops_pattern() {
OpenPOWER on IntegriCloud