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
This commit is contained in:
Lei Zhang 2019-09-25 08:41:11 -07:00 committed by A. Unique TensorFlower
parent 4e32dc9b8a
commit b76c4f8780
2 changed files with 1 additions and 1 deletions

View File

@ -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>

View File

@ -57,6 +57,7 @@ void TestMemRefStrideCalculation::runOnFunction() {
});
llvm::outs() << "\n";
});
llvm::outs().flush();
}
static PassRegistration<TestMemRefStrideCalculation>