From b76c4f878025f112af28f38e4a88ce97e2c249cd Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 25 Sep 2019 08:41:11 -0700 Subject: [PATCH] Fix memref-stride-calculation on Windows Call llvm::outs().flush() to make sure we don't mix streams. Remove CHECK-LABEL to avoid assuming the relative order between the additional info and the output IR. PiperOrigin-RevId: 271131100 --- mlir/test/AffineOps/memref-stride-calculation.mlir | 1 - mlir/test/lib/Transforms/TestMemRefStrideCalculation.cpp | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/test/AffineOps/memref-stride-calculation.mlir b/mlir/test/AffineOps/memref-stride-calculation.mlir index 3a89023b2f46..d74a34dd3720 100644 --- a/mlir/test/AffineOps/memref-stride-calculation.mlir +++ b/mlir/test/AffineOps/memref-stride-calculation.mlir @@ -1,7 +1,6 @@ // RUN: mlir-opt %s -test-memref-stride-calculation | FileCheck %s func @f(%0: index) { -// CHECK-LABEL: func @f( %1 = alloc() : memref<3x4x5xf32> // CHECK: MemRefType offset: 0 strides: 20, 5, 1 %2 = alloc(%0) : memref<3x4x?xf32> diff --git a/mlir/test/lib/Transforms/TestMemRefStrideCalculation.cpp b/mlir/test/lib/Transforms/TestMemRefStrideCalculation.cpp index ac94931506ec..c20d80493b51 100644 --- a/mlir/test/lib/Transforms/TestMemRefStrideCalculation.cpp +++ b/mlir/test/lib/Transforms/TestMemRefStrideCalculation.cpp @@ -57,6 +57,7 @@ void TestMemRefStrideCalculation::runOnFunction() { }); llvm::outs() << "\n"; }); + llvm::outs().flush(); } static PassRegistration