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

[mlir] Crash when handling `memref.load` with vector element type

Open frida-albrecht opened this issue 2 months ago • 1 comments

Description

--test-emulate-narrow-int crashes when processing a memref.load with a vector element type (vector<1xi1>).

Tested commit

3b8ee89

Test case

#map = affine_map<(d0, d1) -> (d0 + d1)>
module {
  func.func @outlined_then2(%arg0: memref<4xvector<1x1x1xi1>, #spirv.storage_class<StorageBuffer>>, %arg1: index, %arg2: index, %arg3: index, %arg4: memref<1x8x8x3xi1, #spirv.storage_class<StorageBuffer>>, %arg5: index, %arg6: index, %arg7: index, %arg8: index) {
    %c1 = arith.constant 1 : index
    %c0 = arith.constant 0 : index
    %0 = vector.type_cast %arg0 : memref<4xvector<1x1x1xi1>, #spirv.storage_class<StorageBuffer>> to memref<4x1xvector<1x1xi1>, #spirv.storage_class<StorageBuffer>>
    scf.for %arg9 = %c0 to %c1 step %c1 {
      %1 = affine.apply #map(%arg1, %arg9)
      %2 = vector.type_cast %0 : memref<4x1xvector<1x1xi1>, #spirv.storage_class<StorageBuffer>> to memref<4x1x1xvector<1xi1>, #spirv.storage_class<StorageBuffer>>
      scf.for %arg10 = %c0 to %c1 step %c1 {
        %3 = affine.apply #map(%arg2, %arg10)
        %4 = memref.load %2[%arg3, %arg9, %arg10] : memref<4x1x1xvector<1xi1>, #spirv.storage_class<StorageBuffer>>
      }
    }
    return
  }
}

Steps to reproduce

mlir-opt test.mlir  --test-emulate-narrow-int

stack trace

mlir-opt: /home/workdir/llvm-project-latest/mlir/lib/IR/Types.cpp:125: unsigned int mlir::Type::getIntOrFloatBitWidth() const: Assertion `isIntOrFloat() && "only integers and floats have a bitwidth"' 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: mlir-opt test.mlir --test-emulate-narrow-int
 #0 0x0000562280d01d0b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (../llvm-project-latest/build/bin/mlir-opt+0x1fc2d0b)
 #1 0x0000562280cfeb11 llvm::sys::RunSignalHandlers() (../llvm-project-latest/build/bin/mlir-opt+0x1fbfb11)
 #2 0x0000562280d02a3b SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #3 0x00007f28da44c520 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x00007f28da4a09fc pthread_kill (/usr/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
 #5 0x00007f28da44c476 gsignal (/usr/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #6 0x00007f28da4327f3 abort (/usr/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #7 0x00007f28da43271b (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
 #8 0x00007f28da443e96 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
 #9 0x0000562289243bd0 mlir::Type::getIntOrFloatBitWidth() const (../llvm-project-latest/build/bin/mlir-opt+0xa504bd0)
#10 0x00005622871d621d (anonymous namespace)::ConvertMemRefLoad::matchAndRewrite(mlir::memref::LoadOp, mlir::memref::LoadOpAdaptor, mlir::ConversionPatternRewriter&) const EmulateNarrowType.cpp:0:0
#11 0x000056228239630b llvm::LogicalResult mlir::ConversionPattern::dispatchTo1To1<mlir::OpConversionPattern<mlir::memref::LoadOp>, mlir::memref::LoadOp>(mlir::OpConversionPattern<mlir::memref::LoadOp> const&, mlir::memref::LoadOp, mlir::memref::LoadOp::GenericAdaptor<llvm::ArrayRef<mlir::ValueRange>>, mlir::ConversionPatternRewriter&) (../llvm-project-latest/build/bin/mlir-opt+0x365730b)
#12 0x0000562282395a17 mlir::OpConversionPattern<mlir::memref::LoadOp>::matchAndRewrite(mlir::Operation*, llvm::ArrayRef<mlir::ValueRange>, mlir::ConversionPatternRewriter&) const (../llvm-project-latest/build/bin/mlir-opt+0x3656a17)
#13 0x0000562288e57224 mlir::ConversionPattern::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&) const (../llvm-project-latest/build/bin/mlir-opt+0xa118224)
#14 0x0000562288ea66c8 void llvm::function_ref<void ()>::callback_fn<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&)>)::$_0>(long) PatternApplicator.cpp:0:0
#15 0x0000562288ea2e2a 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&)>) (../llvm-project-latest/build/bin/mlir-opt+0xa163e2a)
#16 0x0000562288e58f62 (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*) DialectConversion.cpp:0:0
#17 0x0000562288e58750 mlir::OperationConverter::convert(mlir::Operation*, bool) (../llvm-project-latest/build/bin/mlir-opt+0xa119750)
#18 0x0000562288e59c5e mlir::OperationConverter::applyConversion(llvm::ArrayRef<mlir::Operation*>) (../llvm-project-latest/build/bin/mlir-opt+0xa11ac5e)
#19 0x0000562288e684c9 void llvm::function_ref<void ()>::callback_fn<applyConversion(llvm::ArrayRef<mlir::Operation*>, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig, (anonymous namespace)::OpConversionMode)::$_0>(long) DialectConversion.cpp:0:0
#20 0x0000562288e5f927 applyConversion(llvm::ArrayRef<mlir::Operation*>, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig, (anonymous namespace)::OpConversionMode) DialectConversion.cpp:0:0
#21 0x0000562288e5fa0b mlir::applyPartialConversion(mlir::Operation*, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) (../llvm-project-latest/build/bin/mlir-opt+0xa120a0b)
#22 0x0000562280debb15 (anonymous namespace)::TestEmulateNarrowTypePass::runOnOperation() TestEmulateNarrowType.cpp:0:0
#23 0x0000562288f013ee mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (../llvm-project-latest/build/bin/mlir-opt+0xa1c23ee)
#24 0x0000562288f02364 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (../llvm-project-latest/build/bin/mlir-opt+0xa1c3364)
#25 0x0000562288f0cf3e auto void mlir::parallelForEach<__gnu_cxx::__normal_iterator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo*, std::vector<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo, std::allocator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo>>>, mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::$_12>(mlir::MLIRContext*, __gnu_cxx::__normal_iterator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo*, std::vector<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo, std::allocator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo>>>, __gnu_cxx::__normal_iterator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo*, std::vector<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo, std::allocator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo>>>, mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::$_12&&)::'lambda'(__gnu_cxx::__normal_iterator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo*, std::vector<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo, std::allocator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo>>>&&)::operator()<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo&>(__gnu_cxx::__normal_iterator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo*, std::vector<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo, std::allocator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo>>>&&) const Pass.cpp:0:0
#26 0x0000562288f04f38 mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool) (../llvm-project-latest/build/bin/mlir-opt+0xa1c5f38)
#27 0x0000562288f01744 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (../llvm-project-latest/build/bin/mlir-opt+0xa1c2744)
#28 0x0000562288f02364 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (../llvm-project-latest/build/bin/mlir-opt+0xa1c3364)
#29 0x0000562288f090fa mlir::PassManager::runPasses(mlir::Operation*, mlir::AnalysisManager) (../llvm-project-latest/build/bin/mlir-opt+0xa1ca0fa)
#30 0x0000562288f08a5d mlir::PassManager::run(mlir::Operation*) (../llvm-project-latest/build/bin/mlir-opt+0xa1c9a5d)
#31 0x0000562280dad58f performActions(llvm::raw_ostream&, std::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
#32 0x0000562280dac761 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&)::$_0>(long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&) MlirOptMain.cpp:0:0
#33 0x000056228925bec6 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) (../llvm-project-latest/build/bin/mlir-opt+0xa51cec6)
#34 0x0000562280da2ba6 mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&) (../llvm-project-latest/build/bin/mlir-opt+0x2063ba6)
#35 0x0000562280da2f7a mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&) (../llvm-project-latest/build/bin/mlir-opt+0x2063f7a)
#36 0x0000562280da31eb mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&) (../llvm-project-latest/build/bin/mlir-opt+0x20641eb)
#37 0x0000562280ce77cd main (../llvm-project-latest/build/bin/mlir-opt+0x1fa87cd)
#38 0x00007f28da433d90 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#39 0x00007f28da433e40 __libc_start_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#40 0x0000562280ce7325 _start (../llvm-project-latest/build/bin/mlir-opt+0x1fa8325)
Aborted (core dumped)

frida-albrecht avatar Sep 19 '26 06:09 frida-albrecht

@llvm/issue-subscribers-mlir

Author: frida-albrecht

### Description

--test-emulate-narrow-int crashes when processing a memref.load with a vector element type (vector&lt;1xi1&gt;).

Tested commit

3b8ee89

Test case

#map = affine_map&lt;(d0, d1) -&gt; (d0 + d1)&gt;
module {
  func.func @<!-- -->outlined_then2(%arg0: memref&lt;4xvector&lt;1x1x1xi1&gt;, #spirv.storage_class&lt;StorageBuffer&gt;&gt;, %arg1: index, %arg2: index, %arg3: index, %arg4: memref&lt;1x8x8x3xi1, #spirv.storage_class&lt;StorageBuffer&gt;&gt;, %arg5: index, %arg6: index, %arg7: index, %arg8: index) {
    %c1 = arith.constant 1 : index
    %c0 = arith.constant 0 : index
    %0 = vector.type_cast %arg0 : memref&lt;4xvector&lt;1x1x1xi1&gt;, #spirv.storage_class&lt;StorageBuffer&gt;&gt; to memref&lt;4x1xvector&lt;1x1xi1&gt;, #spirv.storage_class&lt;StorageBuffer&gt;&gt;
    scf.for %arg9 = %c0 to %c1 step %c1 {
      %1 = affine.apply #map(%arg1, %arg9)
      %2 = vector.type_cast %0 : memref&lt;4x1xvector&lt;1x1xi1&gt;, #spirv.storage_class&lt;StorageBuffer&gt;&gt; to memref&lt;4x1x1xvector&lt;1xi1&gt;, #spirv.storage_class&lt;StorageBuffer&gt;&gt;
      scf.for %arg10 = %c0 to %c1 step %c1 {
        %3 = affine.apply #map(%arg2, %arg10)
        %4 = memref.load %2[%arg3, %arg9, %arg10] : memref&lt;4x1x1xvector&lt;1xi1&gt;, #spirv.storage_class&lt;StorageBuffer&gt;&gt;
      }
    }
    return
  }
}

Steps to reproduce

mlir-opt test.mlir  --test-emulate-narrow-int

stack trace

mlir-opt: /home/workdir/llvm-project-latest/mlir/lib/IR/Types.cpp:125: unsigned int mlir::Type::getIntOrFloatBitWidth() const: Assertion `isIntOrFloat() &amp;&amp; "only integers and floats have a bitwidth"' 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: mlir-opt test.mlir --test-emulate-narrow-int
 #<!-- -->0 0x0000562280d01d0b llvm::sys::PrintStackTrace(llvm::raw_ostream&amp;, int) (../llvm-project-latest/build/bin/mlir-opt+0x1fc2d0b)
 #<!-- -->1 0x0000562280cfeb11 llvm::sys::RunSignalHandlers() (../llvm-project-latest/build/bin/mlir-opt+0x1fbfb11)
 #<!-- -->2 0x0000562280d02a3b SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #<!-- -->3 0x00007f28da44c520 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #<!-- -->4 0x00007f28da4a09fc pthread_kill (/usr/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
 #<!-- -->5 0x00007f28da44c476 gsignal (/usr/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #<!-- -->6 0x00007f28da4327f3 abort (/usr/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #<!-- -->7 0x00007f28da43271b (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
 #<!-- -->8 0x00007f28da443e96 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
 #<!-- -->9 0x0000562289243bd0 mlir::Type::getIntOrFloatBitWidth() const (../llvm-project-latest/build/bin/mlir-opt+0xa504bd0)
#<!-- -->10 0x00005622871d621d (anonymous namespace)::ConvertMemRefLoad::matchAndRewrite(mlir::memref::LoadOp, mlir::memref::LoadOpAdaptor, mlir::ConversionPatternRewriter&amp;) const EmulateNarrowType.cpp:0:0
#<!-- -->11 0x000056228239630b llvm::LogicalResult mlir::ConversionPattern::dispatchTo1To1&lt;mlir::OpConversionPattern&lt;mlir::memref::LoadOp&gt;, mlir::memref::LoadOp&gt;(mlir::OpConversionPattern&lt;mlir::memref::LoadOp&gt; const&amp;, mlir::memref::LoadOp, mlir::memref::LoadOp::GenericAdaptor&lt;llvm::ArrayRef&lt;mlir::ValueRange&gt;&gt;, mlir::ConversionPatternRewriter&amp;) (../llvm-project-latest/build/bin/mlir-opt+0x365730b)
#<!-- -->12 0x0000562282395a17 mlir::OpConversionPattern&lt;mlir::memref::LoadOp&gt;::matchAndRewrite(mlir::Operation*, llvm::ArrayRef&lt;mlir::ValueRange&gt;, mlir::ConversionPatternRewriter&amp;) const (../llvm-project-latest/build/bin/mlir-opt+0x3656a17)
#<!-- -->13 0x0000562288e57224 mlir::ConversionPattern::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&amp;) const (../llvm-project-latest/build/bin/mlir-opt+0xa118224)
#<!-- -->14 0x0000562288ea66c8 void llvm::function_ref&lt;void ()&gt;::callback_fn&lt;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;)::$_0&gt;(long) PatternApplicator.cpp:0:0
#<!-- -->15 0x0000562288ea2e2a 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;) (../llvm-project-latest/build/bin/mlir-opt+0xa163e2a)
#<!-- -->16 0x0000562288e58f62 (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*) DialectConversion.cpp:0:0
#<!-- -->17 0x0000562288e58750 mlir::OperationConverter::convert(mlir::Operation*, bool) (../llvm-project-latest/build/bin/mlir-opt+0xa119750)
#<!-- -->18 0x0000562288e59c5e mlir::OperationConverter::applyConversion(llvm::ArrayRef&lt;mlir::Operation*&gt;) (../llvm-project-latest/build/bin/mlir-opt+0xa11ac5e)
#<!-- -->19 0x0000562288e684c9 void llvm::function_ref&lt;void ()&gt;::callback_fn&lt;applyConversion(llvm::ArrayRef&lt;mlir::Operation*&gt;, mlir::ConversionTarget const&amp;, mlir::FrozenRewritePatternSet const&amp;, mlir::ConversionConfig, (anonymous namespace)::OpConversionMode)::$_0&gt;(long) DialectConversion.cpp:0:0
#<!-- -->20 0x0000562288e5f927 applyConversion(llvm::ArrayRef&lt;mlir::Operation*&gt;, mlir::ConversionTarget const&amp;, mlir::FrozenRewritePatternSet const&amp;, mlir::ConversionConfig, (anonymous namespace)::OpConversionMode) DialectConversion.cpp:0:0
#<!-- -->21 0x0000562288e5fa0b mlir::applyPartialConversion(mlir::Operation*, mlir::ConversionTarget const&amp;, mlir::FrozenRewritePatternSet const&amp;, mlir::ConversionConfig) (../llvm-project-latest/build/bin/mlir-opt+0xa120a0b)
#<!-- -->22 0x0000562280debb15 (anonymous namespace)::TestEmulateNarrowTypePass::runOnOperation() TestEmulateNarrowType.cpp:0:0
#<!-- -->23 0x0000562288f013ee mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (../llvm-project-latest/build/bin/mlir-opt+0xa1c23ee)
#<!-- -->24 0x0000562288f02364 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&amp;, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (../llvm-project-latest/build/bin/mlir-opt+0xa1c3364)
#<!-- -->25 0x0000562288f0cf3e auto void mlir::parallelForEach&lt;__gnu_cxx::__normal_iterator&lt;mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo*, std::vector&lt;mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo, std::allocator&lt;mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo&gt;&gt;&gt;, mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::$_12&gt;(mlir::MLIRContext*, __gnu_cxx::__normal_iterator&lt;mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo*, std::vector&lt;mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo, std::allocator&lt;mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo&gt;&gt;&gt;, __gnu_cxx::__normal_iterator&lt;mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo*, std::vector&lt;mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo, std::allocator&lt;mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo&gt;&gt;&gt;, mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::$_12&amp;&amp;)::'lambda'(__gnu_cxx::__normal_iterator&lt;mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo*, std::vector&lt;mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo, std::allocator&lt;mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo&gt;&gt;&gt;&amp;&amp;)::operator()&lt;mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo&amp;&gt;(__gnu_cxx::__normal_iterator&lt;mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo*, std::vector&lt;mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo, std::allocator&lt;mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo&gt;&gt;&gt;&amp;&amp;) const Pass.cpp:0:0
#<!-- -->26 0x0000562288f04f38 mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool) (../llvm-project-latest/build/bin/mlir-opt+0xa1c5f38)
#<!-- -->27 0x0000562288f01744 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (../llvm-project-latest/build/bin/mlir-opt+0xa1c2744)
#<!-- -->28 0x0000562288f02364 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&amp;, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (../llvm-project-latest/build/bin/mlir-opt+0xa1c3364)
#<!-- -->29 0x0000562288f090fa mlir::PassManager::runPasses(mlir::Operation*, mlir::AnalysisManager) (../llvm-project-latest/build/bin/mlir-opt+0xa1ca0fa)
#<!-- -->30 0x0000562288f08a5d mlir::PassManager::run(mlir::Operation*) (../llvm-project-latest/build/bin/mlir-opt+0xa1c9a5d)
#<!-- -->31 0x0000562280dad58f performActions(llvm::raw_ostream&amp;, std::shared_ptr&lt;llvm::SourceMgr&gt; const&amp;, mlir::MLIRContext*, mlir::MlirOptMainConfig const&amp;) MlirOptMain.cpp:0:0
#<!-- -->32 0x0000562280dac761 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;)::$_0&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
#<!-- -->33 0x000056228925bec6 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) (../llvm-project-latest/build/bin/mlir-opt+0xa51cec6)
#<!-- -->34 0x0000562280da2ba6 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;) (../llvm-project-latest/build/bin/mlir-opt+0x2063ba6)
#<!-- -->35 0x0000562280da2f7a mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&amp;) (../llvm-project-latest/build/bin/mlir-opt+0x2063f7a)
#<!-- -->36 0x0000562280da31eb mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&amp;) (../llvm-project-latest/build/bin/mlir-opt+0x20641eb)
#<!-- -->37 0x0000562280ce77cd main (../llvm-project-latest/build/bin/mlir-opt+0x1fa87cd)
#<!-- -->38 0x00007f28da433d90 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#<!-- -->39 0x00007f28da433e40 __libc_start_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#<!-- -->40 0x0000562280ce7325 _start (../llvm-project-latest/build/bin/mlir-opt+0x1fa8325)
Aborted (core dumped)