Open
Description
Test on commit:(efd8938)
steps to reproduce:
mlir-opt test.mlir --test-print-liveness
test case:
module {
func.func @test_fft2d_real_h(%arg0: tensor<32x8193x32xf32>, %arg1: tensor<32x32x32xf32>) -> (tensor<32x32x32xf32>, tensor<32x32x32xf32>) {
%0, %1 = "tosa.fft2d"(%arg0, %arg1) { inverse = false } :
(tensor<32x8193x32xf32>, tensor<32x32x32xf32>) -> (tensor<32x32x32xf32>, tensor<32x32x32xf32>)
return %0, %1 : tensor<32x32x32xf32>, tensor<32x32x32xf32>
}
}
crash trace:
mlir-opt: /home/workdir/llvm-project-19/llvm/include/llvm/Support/Casting.h:578: decltype(auto) llvm::cast(From *) [To = mlir::SymbolOpInterface, From = mlir::Operation]: Assertion `isa<To>(Val)` && "cast<Ty>() argument of incompatible type!"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: ./mlir-opt /home/workdir/test.mlir --test-print-liveness
#0 0x00005f489a7c94c8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (./mlir-opt+0x10384c8)
#1 0x00005f489a7c6fee llvm::sys::RunSignalHandlers() (./mlir-opt+0x1035fee)
#2 0x00005f489a7c9ed8 SignalHandler(int) Signals.cpp:0:0
#3 0x000074f8f08a9520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x000074f8f08fd9fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
#5 0x000074f8f08a9476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
#6 0x000074f8f088f7f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
#7 0x000074f8f088f71b (/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
#8 0x000074f8f08a0e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
#9 0x00005f489cd953af decltype(auto) llvm::cast<mlir::SymbolOpInterface, mlir::Operation>(mlir::Operation*) (./mlir-opt+0x36043af)
#10 0x00005f489d416270 (anonymous namespace)::TestLivenessPass::runOnOperation() TestLiveness.cpp:0:0
#11 0x00005f489d95d55f mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (./mlir-opt+0x41cc55f)
#12 0x00005f489d95dd32 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (./mlir-opt+0x41ccd32)
#13 0x00005f489d9604de mlir::PassManager::run(mlir::Operation*) (./mlir-opt+0x41cf4de)
#14 0x00005f489d959012 performActions(llvm::raw_ostream&, std::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
#15 0x00005f489d958c7b llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>::callback_fn<mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&)::$_0>(long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&) MlirOptMain.cpp:0:0
#16 0x00005f489da025a5 mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (./mlir-opt+0x42715a5)
#17 0x00005f489d953e72 mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&) (./mlir-opt+0x41c2e72)
#18 0x00005f489d954123 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&) (./mlir-opt+0x41c3123)
#19 0x00005f489d954332 mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&) (./mlir-opt+0x41c3332)
#20 0x00005f489a7a86b7 main (./mlir-opt+0x10176b7)
#21 0x000074f8f0890d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#22 0x000074f8f0890e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#23 0x00005f489a7a8235 _start (./mlir-opt+0x1017235)
Aborted (core dumped)