mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 03:56:06 +00:00

`test-extract-fixed-outer-loops` pass always crash without any `test-outer-loop-sizes` option. We need to keep the pass from crash by checking the option existence. Fix https://github.com/llvm/llvm-project/issues/61716, https://github.com/llvm/llvm-project/issues/116360 --------- Co-authored-by: Mehdi Amini <joker.eph@gmail.com>
7 lines
218 B
MLIR
7 lines
218 B
MLIR
// RUN: not mlir-opt -test-extract-fixed-outer-loops %s 2>&1 | FileCheck %s
|
|
|
|
func.func @no_crash(%arg0: memref<?x?xf32>) {
|
|
// CHECK: error: missing `test-outer-loop-sizes` pass-option for outer loop sizes
|
|
return
|
|
}
|