[Mlir-commits] [mlir] df0336e - [mlir] ActionTracing: require ASSERTS for debugcounter test

Emilio Cota llvmlistbot at llvm.org
Tue Apr 25 07:59:13 PDT 2023


Author: Emilio Cota
Date: 2023-04-25T10:58:51-04:00
New Revision: df0336ef8b308a4b08afeb09ed382e6606919430

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

LOG: [mlir] ActionTracing: require ASSERTS for debugcounter test

While at it, fix some typos.

Differential Revision: https://reviews.llvm.org/D149159

Added: 
    

Modified: 
    mlir/test/mlir-opt/debugcounter.mlir

Removed: 
    


################################################################################
diff  --git a/mlir/test/mlir-opt/debugcounter.mlir b/mlir/test/mlir-opt/debugcounter.mlir
index 5d1779560a513..d17b4d1669810 100644
--- a/mlir/test/mlir-opt/debugcounter.mlir
+++ b/mlir/test/mlir-opt/debugcounter.mlir
@@ -1,15 +1,16 @@
-// This test exercise the example in docs/ActionTracing.md ; changes here should
-// probably be reflected there.
+// This test exercises the example in docs/ActionTracing.md ; changes here
+// should probably be reflected there.
 
-// RUN: mlir-opt %s -mlir-debug-counter=unique-tag-for-my-action-skip=-1 -mlir-print-debug-counter --pass-pipeline="builtin.module(func.func(canonicalize))" --mlir-disable-threading 2>&1 | FileCheck %s --check-prefix=CHECK-UKNOWN-TAG
+// REQUIRES: asserts
+// RUN: mlir-opt %s -mlir-debug-counter=unique-tag-for-my-action-skip=-1 -mlir-print-debug-counter --pass-pipeline="builtin.module(func.func(canonicalize))" --mlir-disable-threading 2>&1 | FileCheck %s --check-prefix=CHECK-UNKNOWN-TAG
 // RUN: mlir-opt %s -mlir-debug-counter=pass-execution-skip=1 -mlir-print-debug-counter --pass-pipeline="builtin.module(func.func(canonicalize))" --mlir-disable-threading 2>&1 | FileCheck %s --check-prefix=CHECK-PASS
 
 func.func @foo() {
     return
 }
 
-// CHECK-UKNOWN-TAG:  DebugCounter counters:
-// CHECK-UKNOWN-TAG: unique-tag-for-my-action        : {0,-1,-1}
+// CHECK-UNKNOWN-TAG:  DebugCounter counters:
+// CHECK-UNKNOWN-TAG: unique-tag-for-my-action        : {0,-1,-1}
 
 // CHECK-PASS: DebugCounter counters:
 // CHECK-PASS: pass-execution                  : {1,1,-1}


        


More information about the Mlir-commits mailing list