llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[mlir](canonicalize) mlir-opt crashes at BuiltinTypeInterfaces.h.inc:778 with assertion `idx < getRank() && "invalid index for shaped type"' failed.

Open Aran-414 opened this issue 5 months ago • 4 comments

git version: 2e87cf8c2b8ec6453ccfa7e448d5b33f1d71a2ca

MLIR Program:

module {
  func.func @static_out_of_bound_memref_dim(%arg0: memref<42x32x15x13x27xf32>) -> index {
    %c-7 = arith.constant -7 : index
    %dim = memref.dim %arg0, %c-7 : memref<42x32x15x13x27xf32>
    return %dim : index
  }
  func.func @m0() {
    %alloca = memref.alloca() {test.recipe_name = #acc.recipe_kind<private_recipe>} : memref<5x10xf32>
    return
  }
}

Reproduce Command: mlir-opt -canonicalize a.mlir

StackTrace:

mlir-opt: /data2/dependency/dev/llvm-project/build/tools/mlir/include/mlir/IR/BuiltinTypeInterfaces.h.inc:778: bool mlir::detail::ShapedTypeTrait<ConcreteType>::isDynamicDim(unsigned int) const [with ConcreteType = mlir::MemRefType]: Assertion `idx < getRank() && "invalid index for shaped type"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0.      Program arguments: /data2/dependency/dev/llvm-project/build/bin/mlir-opt -canonicalize a.mlir
 #0 0x000055ae78e2420f llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x25cb20f)
 #1 0x000055ae78e209dc llvm::sys::RunSignalHandlers() (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x25c79dc)
 #2 0x000055ae78e20b77 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #3 0x00007fe14fadb420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
 #4 0x00007fe14f5c600b raise (/lib/x86_64-linux-gnu/libc.so.6+0x4300b)
 #5 0x00007fe14f5a5859 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22859)
 #6 0x00007fe14f5a5729 (/lib/x86_64-linux-gnu/libc.so.6+0x22729)
 #7 0x00007fe14f5b6fd6 (/lib/x86_64-linux-gnu/libc.so.6+0x33fd6)
 #8 0x000055ae80b175d5 (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xa2be5d5)
 #9 0x000055ae7fbf79e0 mlir::detail::OpOrInterfaceRewritePatternBase<mlir::memref::DimOp>::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&) const (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x939e9e0)
#10 0x000055ae81bcea72 mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::function_ref<bool (mlir::Pattern const&)>, llvm::function_ref<void (mlir::Pattern const&)>, llvm::function_ref<llvm::LogicalResult (mlir::Pattern const&)>)::'lambda'()::operator()() const PatternApplicator.cpp:0:0
#11 0x000055ae81bcff68 mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::function_ref<bool (mlir::Pattern const&)>, llvm::function_ref<void (mlir::Pattern const&)>, llvm::function_ref<llvm::LogicalResult (mlir::Pattern const&)>) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb376f68)
#12 0x000055ae81b9a137 (anonymous namespace)::GreedyPatternRewriteDriver::processWorklist() GreedyPatternRewriteDriver.cpp:0:0
#13 0x000055ae81b9e446 mlir::applyPatternsGreedily(mlir::Region&, mlir::FrozenRewritePatternSet const&, mlir::GreedyRewriteConfig, bool*) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb345446)
#14 0x000055ae81aeab92 (anonymous namespace)::Canonicalizer::runOnOperation() Canonicalizer.cpp:0:0
#15 0x000055ae81c3a281 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb3e1281)
#16 0x000055ae81c3a610 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb3e1610)
#17 0x000055ae81c3c6c4 mlir::PassManager::runPasses(mlir::Operation*, mlir::AnalysisManager) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb3e36c4)
#18 0x000055ae81c3d751 mlir::PassManager::run(mlir::Operation*) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb3e4751)
#19 0x000055ae78ee9e8b performActions(llvm::raw_ostream&, std::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
#20 0x000055ae78eea933 processBuffer(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef, mlir::MlirOptMainConfig const&, mlir::DialectRegistry&, mlir::SourceMgrDiagnosticVerifierHandler*, llvm::ThreadPoolInterface*) MlirOptMain.cpp:0:0
#21 0x000055ae78eeabbb llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, 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&)::'lambda'(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef, llvm::raw_ostream&)>(long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&) MlirOptMain.cpp:0:0
#22 0x000055ae82012cb5 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::MemoryBufferRef const&, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb7b9cb5)
#23 0x000055ae78ee0cc4 mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&) (.part.0) MlirOptMain.cpp:0:0
#24 0x000055ae78eeb0d7 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x26920d7)
#25 0x000055ae78eeb313 mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x2692313)
#26 0x000055ae78d50b8c main (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x24f7b8c)
#27 0x00007fe14f5a7083 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24083)
#28 0x000055ae78e0091e _start (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x25a791e)
Aborted (core dumped)

Aran-414 avatar Jun 22 '26 09:06 Aran-414

@llvm/issue-subscribers-mlir

Author: Aran-414

git version: 2e87cf8c2b8ec6453ccfa7e448d5b33f1d71a2ca

MLIR Program:

module {
  func.func @<!-- -->static_out_of_bound_memref_dim(%arg0: memref&lt;42x32x15x13x27xf32&gt;) -&gt; index {
    %c-7 = arith.constant -7 : index
    %dim = memref.dim %arg0, %c-7 : memref&lt;42x32x15x13x27xf32&gt;
    return %dim : index
  }
  func.func @<!-- -->m0() {
    %alloca = memref.alloca() {test.recipe_name = #acc.recipe_kind&lt;private_recipe&gt;} : memref&lt;5x10xf32&gt;
    return
  }
}

Reproduce Command: mlir-opt -inline a.mlir

StackTrace:

mlir-opt: /data2/dependency/dev/llvm-project/build/tools/mlir/include/mlir/IR/BuiltinTypeInterfaces.h.inc:778: bool mlir::detail::ShapedTypeTrait&lt;ConcreteType&gt;::isDynamicDim(unsigned int) const [with ConcreteType = mlir::MemRefType]: Assertion `idx &lt; getRank() &amp;&amp; "invalid index for shaped type"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0.      Program arguments: /data2/dependency/dev/llvm-project/build/bin/mlir-opt -inline a.mlir
 #<!-- -->0 0x000055eeed2bd1cf llvm::sys::PrintStackTrace(llvm::raw_ostream&amp;, int) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x25c71cf)
 #<!-- -->1 0x000055eeed2b999c llvm::sys::RunSignalHandlers() (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x25c399c)
 #<!-- -->2 0x000055eeed2b9b37 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #<!-- -->3 0x00007f210e578420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
 #<!-- -->4 0x00007f210e06300b raise (/lib/x86_64-linux-gnu/libc.so.6+0x4300b)
 #<!-- -->5 0x00007f210e042859 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22859)
 #<!-- -->6 0x00007f210e042729 (/lib/x86_64-linux-gnu/libc.so.6+0x22729)
 #<!-- -->7 0x00007f210e053fd6 (/lib/x86_64-linux-gnu/libc.so.6+0x33fd6)
 #<!-- -->8 0x000055eef4fb2f65 (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xa2bcf65)
 #<!-- -->9 0x000055eef4091b70 mlir::detail::OpOrInterfaceRewritePatternBase&lt;mlir::memref::DimOp&gt;::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&amp;) const (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x939bb70)
#<!-- -->10 0x000055eef606e492 mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&amp;, llvm::function_ref&lt;bool (mlir::Pattern const&amp;)&gt;, llvm::function_ref&lt;void (mlir::Pattern const&amp;)&gt;, llvm::function_ref&lt;llvm::LogicalResult (mlir::Pattern const&amp;)&gt;)::'lambda'()::operator()() const PatternApplicator.cpp:0:0
#<!-- -->11 0x000055eef606f988 mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&amp;, llvm::function_ref&lt;bool (mlir::Pattern const&amp;)&gt;, llvm::function_ref&lt;void (mlir::Pattern const&amp;)&gt;, llvm::function_ref&lt;llvm::LogicalResult (mlir::Pattern const&amp;)&gt;) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb379988)
#<!-- -->12 0x000055eef6039b57 (anonymous namespace)::GreedyPatternRewriteDriver::processWorklist() GreedyPatternRewriteDriver.cpp:0:0
#<!-- -->13 0x000055eef603de66 mlir::applyPatternsGreedily(mlir::Region&amp;, mlir::FrozenRewritePatternSet const&amp;, mlir::GreedyRewriteConfig, bool*) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb347e66)
#<!-- -->14 0x000055eef5f8a4d2 (anonymous namespace)::Canonicalizer::runOnOperation() Canonicalizer.cpp:0:0
#<!-- -->15 0x000055eef60da5e1 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb3e45e1)
#<!-- -->16 0x000055eef60da970 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&amp;, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb3e4970)
#<!-- -->17 0x000055eef60db747 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::'lambda1'(mlir::OpPassManager&amp;, mlir::Operation*)::operator()(mlir::OpPassManager&amp;, mlir::Operation*) const Pass.cpp:0:0
#<!-- -->18 0x000055eef5f9748c (anonymous namespace)::InlinerPass::runPipelineHelper(mlir::Pass&amp;, mlir::OpPassManager&amp;, mlir::Operation*) InlinerPass.cpp:0:0
#<!-- -->19 0x000055eef60413b7 mlir::Inliner::Impl::optimizeCallable(mlir::CallGraphNode*, llvm::StringMap&lt;mlir::OpPassManager, llvm::MallocAllocator&gt;&amp;) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb34b3b7)
#<!-- -->20 0x000055eef6043ec5 mlir::Inliner::Impl::optimizeSCCAsync(llvm::MutableArrayRef&lt;mlir::CallGraphNode*&gt;, mlir::MLIRContext*) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb34dec5)
#<!-- -->21 0x000055eef60494cf mlir::Inliner::doInlining() (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb3534cf)
#<!-- -->22 0x000055eef5f99840 (anonymous namespace)::InlinerPass::runOnOperation() InlinerPass.cpp:0:0
#<!-- -->23 0x000055eef60da5e1 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb3e45e1)
#<!-- -->24 0x000055eef60da970 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&amp;, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb3e4970)
#<!-- -->25 0x000055eef60dca24 mlir::PassManager::runPasses(mlir::Operation*, mlir::AnalysisManager) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb3e6a24)
#<!-- -->26 0x000055eef60ddab1 mlir::PassManager::run(mlir::Operation*) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb3e7ab1)
#<!-- -->27 0x000055eeed38322b performActions(llvm::raw_ostream&amp;, std::shared_ptr&lt;llvm::SourceMgr&gt; const&amp;, mlir::MLIRContext*, mlir::MlirOptMainConfig const&amp;) MlirOptMain.cpp:0:0
#<!-- -->28 0x000055eeed383cd3 processBuffer(llvm::raw_ostream&amp;, std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, llvm::MemoryBufferRef, mlir::MlirOptMainConfig const&amp;, mlir::DialectRegistry&amp;, mlir::SourceMgrDiagnosticVerifierHandler*, llvm::ThreadPoolInterface*) MlirOptMain.cpp:0:0
#<!-- -->29 0x000055eeed383f5b llvm::LogicalResult llvm::function_ref&lt;llvm::LogicalResult (std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, llvm::MemoryBufferRef const&amp;, llvm::raw_ostream&amp;)&gt;::callback_fn&lt;mlir::MlirOptMain(llvm::raw_ostream&amp;, std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, mlir::DialectRegistry&amp;, mlir::MlirOptMainConfig const&amp;)::'lambda'(std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, llvm::MemoryBufferRef, llvm::raw_ostream&amp;)&gt;(long, std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, llvm::MemoryBufferRef const&amp;, llvm::raw_ostream&amp;) MlirOptMain.cpp:0:0
#<!-- -->30 0x000055eef64b5535 mlir::splitAndProcessBuffer(std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, llvm::function_ref&lt;llvm::LogicalResult (std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, llvm::MemoryBufferRef const&amp;, llvm::raw_ostream&amp;)&gt;, llvm::raw_ostream&amp;, llvm::StringRef, llvm::StringRef) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb7bf535)
#<!-- -->31 0x000055eeed37a064 mlir::MlirOptMain(llvm::raw_ostream&amp;, std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, mlir::DialectRegistry&amp;, mlir::MlirOptMainConfig const&amp;) (.part.0) MlirOptMain.cpp:0:0
#<!-- -->32 0x000055eeed384477 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&amp;) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x268e477)
#<!-- -->33 0x000055eeed3846b3 mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&amp;) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x268e6b3)
#<!-- -->34 0x000055eeed1e9b8c main (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x24f3b8c)
#<!-- -->35 0x00007f210e044083 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24083)
#<!-- -->36 0x000055eeed2998de _start (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x25a38de)
Aborted (core dumped)

Should be reproducible with -canonicalize instead of -inline, and just one of the function.

joker-eph avatar Jun 22 '26 13:06 joker-eph

Should be reproducible with -canonicalize instead of -inline, and just one of the function.

I can reproduce the crash with -canonicalize, but as soon as I remove any function from a.mlir, the crash disappears.

Aran-414 avatar Jun 23 '26 00:06 Aran-414

@llvm/issue-subscribers-mlir-gpu

Author: Aran-414

git version: 2e87cf8c2b8ec6453ccfa7e448d5b33f1d71a2ca

MLIR Program:

module {
  func.func @<!-- -->static_out_of_bound_memref_dim(%arg0: memref&lt;42x32x15x13x27xf32&gt;) -&gt; index {
    %c-7 = arith.constant -7 : index
    %dim = memref.dim %arg0, %c-7 : memref&lt;42x32x15x13x27xf32&gt;
    return %dim : index
  }
  func.func @<!-- -->m0() {
    %alloca = memref.alloca() {test.recipe_name = #acc.recipe_kind&lt;private_recipe&gt;} : memref&lt;5x10xf32&gt;
    return
  }
}

Reproduce Command: mlir-opt -canonicalize a.mlir

StackTrace:

mlir-opt: /data2/dependency/dev/llvm-project/build/tools/mlir/include/mlir/IR/BuiltinTypeInterfaces.h.inc:778: bool mlir::detail::ShapedTypeTrait&lt;ConcreteType&gt;::isDynamicDim(unsigned int) const [with ConcreteType = mlir::MemRefType]: Assertion `idx &lt; getRank() &amp;&amp; "invalid index for shaped type"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0.      Program arguments: /data2/dependency/dev/llvm-project/build/bin/mlir-opt -canonicalize a.mlir
 #<!-- -->0 0x000055ae78e2420f llvm::sys::PrintStackTrace(llvm::raw_ostream&amp;, int) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x25cb20f)
 #<!-- -->1 0x000055ae78e209dc llvm::sys::RunSignalHandlers() (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x25c79dc)
 #<!-- -->2 0x000055ae78e20b77 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #<!-- -->3 0x00007fe14fadb420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
 #<!-- -->4 0x00007fe14f5c600b raise (/lib/x86_64-linux-gnu/libc.so.6+0x4300b)
 #<!-- -->5 0x00007fe14f5a5859 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22859)
 #<!-- -->6 0x00007fe14f5a5729 (/lib/x86_64-linux-gnu/libc.so.6+0x22729)
 #<!-- -->7 0x00007fe14f5b6fd6 (/lib/x86_64-linux-gnu/libc.so.6+0x33fd6)
 #<!-- -->8 0x000055ae80b175d5 (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xa2be5d5)
 #<!-- -->9 0x000055ae7fbf79e0 mlir::detail::OpOrInterfaceRewritePatternBase&lt;mlir::memref::DimOp&gt;::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&amp;) const (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x939e9e0)
#<!-- -->10 0x000055ae81bcea72 mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&amp;, llvm::function_ref&lt;bool (mlir::Pattern const&amp;)&gt;, llvm::function_ref&lt;void (mlir::Pattern const&amp;)&gt;, llvm::function_ref&lt;llvm::LogicalResult (mlir::Pattern const&amp;)&gt;)::'lambda'()::operator()() const PatternApplicator.cpp:0:0
#<!-- -->11 0x000055ae81bcff68 mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&amp;, llvm::function_ref&lt;bool (mlir::Pattern const&amp;)&gt;, llvm::function_ref&lt;void (mlir::Pattern const&amp;)&gt;, llvm::function_ref&lt;llvm::LogicalResult (mlir::Pattern const&amp;)&gt;) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb376f68)
#<!-- -->12 0x000055ae81b9a137 (anonymous namespace)::GreedyPatternRewriteDriver::processWorklist() GreedyPatternRewriteDriver.cpp:0:0
#<!-- -->13 0x000055ae81b9e446 mlir::applyPatternsGreedily(mlir::Region&amp;, mlir::FrozenRewritePatternSet const&amp;, mlir::GreedyRewriteConfig, bool*) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb345446)
#<!-- -->14 0x000055ae81aeab92 (anonymous namespace)::Canonicalizer::runOnOperation() Canonicalizer.cpp:0:0
#<!-- -->15 0x000055ae81c3a281 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb3e1281)
#<!-- -->16 0x000055ae81c3a610 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&amp;, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb3e1610)
#<!-- -->17 0x000055ae81c3c6c4 mlir::PassManager::runPasses(mlir::Operation*, mlir::AnalysisManager) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb3e36c4)
#<!-- -->18 0x000055ae81c3d751 mlir::PassManager::run(mlir::Operation*) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb3e4751)
#<!-- -->19 0x000055ae78ee9e8b performActions(llvm::raw_ostream&amp;, std::shared_ptr&lt;llvm::SourceMgr&gt; const&amp;, mlir::MLIRContext*, mlir::MlirOptMainConfig const&amp;) MlirOptMain.cpp:0:0
#<!-- -->20 0x000055ae78eea933 processBuffer(llvm::raw_ostream&amp;, std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, llvm::MemoryBufferRef, mlir::MlirOptMainConfig const&amp;, mlir::DialectRegistry&amp;, mlir::SourceMgrDiagnosticVerifierHandler*, llvm::ThreadPoolInterface*) MlirOptMain.cpp:0:0
#<!-- -->21 0x000055ae78eeabbb llvm::LogicalResult llvm::function_ref&lt;llvm::LogicalResult (std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, llvm::MemoryBufferRef const&amp;, llvm::raw_ostream&amp;)&gt;::callback_fn&lt;mlir::MlirOptMain(llvm::raw_ostream&amp;, std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, mlir::DialectRegistry&amp;, mlir::MlirOptMainConfig const&amp;)::'lambda'(std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, llvm::MemoryBufferRef, llvm::raw_ostream&amp;)&gt;(long, std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, llvm::MemoryBufferRef const&amp;, llvm::raw_ostream&amp;) MlirOptMain.cpp:0:0
#<!-- -->22 0x000055ae82012cb5 mlir::splitAndProcessBuffer(std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, llvm::function_ref&lt;llvm::LogicalResult (std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, llvm::MemoryBufferRef const&amp;, llvm::raw_ostream&amp;)&gt;, llvm::raw_ostream&amp;, llvm::StringRef, llvm::StringRef) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb7b9cb5)
#<!-- -->23 0x000055ae78ee0cc4 mlir::MlirOptMain(llvm::raw_ostream&amp;, std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, mlir::DialectRegistry&amp;, mlir::MlirOptMainConfig const&amp;) (.part.0) MlirOptMain.cpp:0:0
#<!-- -->24 0x000055ae78eeb0d7 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&amp;) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x26920d7)
#<!-- -->25 0x000055ae78eeb313 mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&amp;) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x2692313)
#<!-- -->26 0x000055ae78d50b8c main (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x24f7b8c)
#<!-- -->27 0x00007fe14f5a7083 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24083)
#<!-- -->28 0x000055ae78e0091e _start (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x25a791e)
Aborted (core dumped)