forked from OSchip/llvm-project
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:
parent
4e32dc9b8a
commit
b76c4f8780
|
@ -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>
|
||||
|
|
|
@ -57,6 +57,7 @@ void TestMemRefStrideCalculation::runOnFunction() {
|
|||
});
|
||||
llvm::outs() << "\n";
|
||||
});
|
||||
llvm::outs().flush();
|
||||
}
|
||||
|
||||
static PassRegistration<TestMemRefStrideCalculation>
|
||||
|
|
Loading…
Reference in New Issue