[Mlir-commits] [mlir] 666a56f - [MLIR][Tests] Update tests so they require assertions

Roger Ferrer Ibanez llvmlistbot at llvm.org
Tue Jun 13 09:01:51 PDT 2023


Author: Roger Ferrer Ibanez
Date: 2023-06-13T16:00:44Z
New Revision: 666a56f1f1683535967d1a3b7587bf85044ea005

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

LOG: [MLIR][Tests] Update tests so they require assertions

These tests check statistics results which require assertions enabled.

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

Added: 
    

Modified: 
    mlir/test/Dialect/LLVMIR/sroa-statistics.mlir
    mlir/test/Dialect/MemRef/mem2reg-statistics.mlir

Removed: 
    


################################################################################
diff  --git a/mlir/test/Dialect/LLVMIR/sroa-statistics.mlir b/mlir/test/Dialect/LLVMIR/sroa-statistics.mlir
index e859fbb07e1fb..2905e8745ae02 100644
--- a/mlir/test/Dialect/LLVMIR/sroa-statistics.mlir
+++ b/mlir/test/Dialect/LLVMIR/sroa-statistics.mlir
@@ -1,3 +1,4 @@
+// REQUIRES: asserts
 // RUN: mlir-opt %s --pass-pipeline="builtin.module(llvm.func(sroa))" --split-input-file --mlir-pass-statistics 2>&1 >/dev/null | FileCheck %s
 
 // CHECK: SROA

diff  --git a/mlir/test/Dialect/MemRef/mem2reg-statistics.mlir b/mlir/test/Dialect/MemRef/mem2reg-statistics.mlir
index 29ca51194ffd3..9e7f0d312c002 100644
--- a/mlir/test/Dialect/MemRef/mem2reg-statistics.mlir
+++ b/mlir/test/Dialect/MemRef/mem2reg-statistics.mlir
@@ -1,3 +1,4 @@
+// REQUIRES: asserts
 // RUN: mlir-opt %s --pass-pipeline='builtin.module(func.func(mem2reg))' --split-input-file --mlir-pass-statistics 2>&1 >/dev/null | FileCheck %s
 
 // CHECK: Mem2Reg


        


More information about the Mlir-commits mailing list