Issue |
133184
|
Summary |
Invalid MLIR crashes mlir-opt
|
Labels |
mlir
|
Assignees |
|
Reporter |
hiraditya
|
```mlir
func.func @test_vectorize_copy_complex(%arg0: tensor<8x8xcomplex<i32>>, %arg1: tensor<8x8xcomplex<i32>>) -> tensor<8x8xcomplex<i32>> {
%cst = arith.constant dense<42> : tensor<8x8xcomplex<i32>>
}
```
```bash
$ ./bin/mlir-opt -verify-diagnostics x.mlir
llvm-project/mlir/lib/IR/BuiltinAttributes.cpp:1027: static mlir::DenseElementsAttr mlir::DenseElementsAttr::get(mlir::ShapedType, llvm::ArrayRef<std::complex<llvm::APInt> >): Assertion `hasSameElementsOrSplat(type, values)' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: ./bin/mlir-opt -verify-diagnostics x.mlir
1. MLIR Parser: custom op parser 'func.func'
2. MLIR Parser: custom op parser 'arith.constant'
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs