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

[mlir] `--convert-tensor-to-spirv` crashes on `arith.sitofp` with tensor operands

Open frida-albrecht opened this issue 1 month ago • 4 comments

The --convert-tensor-to-spirv pass crashes when processing an arith.sitofp operation with tensor operands.

The crash occurs in IntToFPPattern::matchAndRewrite in ArithToSPIRV.cpp, where Type::getIntOrFloatBitWidth() is called on a non-scalar type, triggering the following assertion: Assertion isIntOrFloat() && "only integers and floats have a bitwidth"' failed`.

test commit: 7a941df

test case:

module {
  func.func private @main(%arg0: tensor<6x4x6xi8>) -> tensor<6x4x6xf32> {
    %0 = arith.sitofp %arg0 : tensor<6x4x6xi8> to tensor<6x4x6xf32>
    return %0 : tensor<6x4x6xf32>
  }
}

Step to reproduce:

mlir-opt test.mlir  --convert-tensor-to-spirv

Crash backtrace:

mlir-opt: /home/llvm-project/llvm-project-23.1.4/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: /home/llvm-project/build-23.1.4/bin/mlir-opt /home/llvm-project/results/verify_test/174.mlir --convert-tensor-to-spirv
 #0 0x0000562f9c4f0529 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1e8c529)
 #1 0x0000562f9c4ecd0c llvm::sys::RunSignalHandlers() (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1e88d0c)
 #2 0x0000562f9c4ece72 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #3 0x00007ff6533cd520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x00007ff6534219bc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969bc)
 #5 0x00007ff6533cd476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #6 0x00007ff6533b37f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #7 0x00007ff6533b371b (/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
 #8 0x00007ff6533c4e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
 #9 0x0000562fa4d62d7f mlir::Type::getIntOrFloatBitWidth() const (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa6fed7f)
#10 0x0000562fa02e5516 (anonymous namespace)::IntToFPPattern<mlir::arith::SIToFPOp, mlir::spirv::ConvertSToFOp, true>::matchAndRewrite(mlir::arith::SIToFPOp, mlir::arith::SIToFPOpAdaptor, mlir::ConversionPatternRewriter&) const ArithToSPIRV.cpp:0:0
#11 0x0000562f9dcfbb07 llvm::LogicalResult mlir::ConversionPattern::dispatchTo1To1<mlir::OpConversionPattern<mlir::arith::SIToFPOp>, mlir::arith::SIToFPOp>(mlir::OpConversionPattern<mlir::arith::SIToFPOp> const&, mlir::arith::SIToFPOp, mlir::arith::SIToFPOp::GenericAdaptor<llvm::ArrayRef<mlir::ValueRange>>, mlir::ConversionPatternRewriter&) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x3697b07)
#12 0x0000562f9dcfbce1 mlir::OpConversionPattern<mlir::arith::SIToFPOp>::matchAndRewrite(mlir::Operation*, llvm::ArrayRef<mlir::ValueRange>, mlir::ConversionPatternRewriter&) const (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x3697ce1)
#13 0x0000562fa48efe2f mlir::ConversionPattern::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&) const (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa28be2f)
#14 0x0000562fa4936b51 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
#15 0x0000562fa49381bf 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&)>) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa2d41bf)
#16 0x0000562fa48e9cdb (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*) DialectConversion.cpp:0:0
#17 0x0000562fa48ea194 mlir::OperationConverter::convert(mlir::Operation*, bool) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa286194)
#18 0x0000562fa48f3d66 mlir::OperationConverter::applyConversion(llvm::ArrayRef<mlir::Operation*>) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa28fd66)
#19 0x0000562fa48f539f applyConversion(llvm::ArrayRef<mlir::Operation*>, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig, (anonymous namespace)::OpConversionMode) DialectConversion.cpp:0:0
#20 0x0000562fa48f5556 mlir::applyPartialConversion(mlir::Operation*, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa291556)
#21 0x0000562fa02d05dc (anonymous namespace)::ConvertTensorToSPIRVPass::runOnOperation() TensorToSPIRVPass.cpp:0:0
#22 0x0000562fa49a1d09 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa33dd09)
#23 0x0000562fa49a2074 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa33e074)
#24 0x0000562fa49a40f2 mlir::PassManager::runPasses(mlir::Operation*, mlir::AnalysisManager) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa3400f2)
#25 0x0000562fa49a50f9 mlir::PassManager::run(mlir::Operation*) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa3410f9)
#26 0x0000562f9c5b35f7 performActions(llvm::raw_ostream&, std::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
#27 0x0000562f9c5b3fc7 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
#28 0x0000562fa4d879bd 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) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa7239bd)
#29 0x0000562f9c5aef3a 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
#30 0x0000562f9c5b4708 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1f50708)
#31 0x0000562f9c5b4964 mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1f50964)
#32 0x0000562f9c441a5c main (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1ddda5c)
#33 0x00007ff6533b4d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#34 0x00007ff6533b4e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#35 0x0000562f9c4cff65 _start (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1e6bf65)
Aborted (core dumped)

frida-albrecht avatar Oct 30 '26 13:10 frida-albrecht

@llvm/issue-subscribers-mlir

Author: frida-albrecht

The `--convert-tensor-to-spirv` pass crashes when processing an arith.sitofp operation with tensor operands.

The crash occurs in IntToFPPattern::matchAndRewrite in ArithToSPIRV.cpp, where Type::getIntOrFloatBitWidth() is called on a non-scalar type, triggering the following assertion: Assertion isIntOrFloat() && "only integers and floats have a bitwidth"' failed`.

test commit: 7a941df

test case:

module {
  func.func private @<!-- -->main(%arg0: tensor&lt;6x4x6xi8&gt;) -&gt; tensor&lt;6x4x6xf32&gt; {
    %0 = arith.sitofp %arg0 : tensor&lt;6x4x6xi8&gt; to tensor&lt;6x4x6xf32&gt;
    return %0 : tensor&lt;6x4x6xf32&gt;
  }
}

Step to reproduce:

mlir-opt test.mlir  --convert-tensor-to-spirv

Crash backtrace:

mlir-opt: /home/llvm-project/llvm-project-23.1.4/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: /home/llvm-project/build-23.1.4/bin/mlir-opt /home/llvm-project/results/verify_test/174.mlir --convert-tensor-to-spirv
 #<!-- -->0 0x0000562f9c4f0529 llvm::sys::PrintStackTrace(llvm::raw_ostream&amp;, int) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1e8c529)
 #<!-- -->1 0x0000562f9c4ecd0c llvm::sys::RunSignalHandlers() (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1e88d0c)
 #<!-- -->2 0x0000562f9c4ece72 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #<!-- -->3 0x00007ff6533cd520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #<!-- -->4 0x00007ff6534219bc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969bc)
 #<!-- -->5 0x00007ff6533cd476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #<!-- -->6 0x00007ff6533b37f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #<!-- -->7 0x00007ff6533b371b (/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
 #<!-- -->8 0x00007ff6533c4e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
 #<!-- -->9 0x0000562fa4d62d7f mlir::Type::getIntOrFloatBitWidth() const (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa6fed7f)
#<!-- -->10 0x0000562fa02e5516 (anonymous namespace)::IntToFPPattern&lt;mlir::arith::SIToFPOp, mlir::spirv::ConvertSToFOp, true&gt;::matchAndRewrite(mlir::arith::SIToFPOp, mlir::arith::SIToFPOpAdaptor, mlir::ConversionPatternRewriter&amp;) const ArithToSPIRV.cpp:0:0
#<!-- -->11 0x0000562f9dcfbb07 llvm::LogicalResult mlir::ConversionPattern::dispatchTo1To1&lt;mlir::OpConversionPattern&lt;mlir::arith::SIToFPOp&gt;, mlir::arith::SIToFPOp&gt;(mlir::OpConversionPattern&lt;mlir::arith::SIToFPOp&gt; const&amp;, mlir::arith::SIToFPOp, mlir::arith::SIToFPOp::GenericAdaptor&lt;llvm::ArrayRef&lt;mlir::ValueRange&gt;&gt;, mlir::ConversionPatternRewriter&amp;) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x3697b07)
#<!-- -->12 0x0000562f9dcfbce1 mlir::OpConversionPattern&lt;mlir::arith::SIToFPOp&gt;::matchAndRewrite(mlir::Operation*, llvm::ArrayRef&lt;mlir::ValueRange&gt;, mlir::ConversionPatternRewriter&amp;) const (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x3697ce1)
#<!-- -->13 0x0000562fa48efe2f mlir::ConversionPattern::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&amp;) const (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa28be2f)
#<!-- -->14 0x0000562fa4936b51 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
#<!-- -->15 0x0000562fa49381bf 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;) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa2d41bf)
#<!-- -->16 0x0000562fa48e9cdb (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*) DialectConversion.cpp:0:0
#<!-- -->17 0x0000562fa48ea194 mlir::OperationConverter::convert(mlir::Operation*, bool) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa286194)
#<!-- -->18 0x0000562fa48f3d66 mlir::OperationConverter::applyConversion(llvm::ArrayRef&lt;mlir::Operation*&gt;) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa28fd66)
#<!-- -->19 0x0000562fa48f539f applyConversion(llvm::ArrayRef&lt;mlir::Operation*&gt;, mlir::ConversionTarget const&amp;, mlir::FrozenRewritePatternSet const&amp;, mlir::ConversionConfig, (anonymous namespace)::OpConversionMode) DialectConversion.cpp:0:0
#<!-- -->20 0x0000562fa48f5556 mlir::applyPartialConversion(mlir::Operation*, mlir::ConversionTarget const&amp;, mlir::FrozenRewritePatternSet const&amp;, mlir::ConversionConfig) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa291556)
#<!-- -->21 0x0000562fa02d05dc (anonymous namespace)::ConvertTensorToSPIRVPass::runOnOperation() TensorToSPIRVPass.cpp:0:0
#<!-- -->22 0x0000562fa49a1d09 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa33dd09)
#<!-- -->23 0x0000562fa49a2074 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&amp;, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa33e074)
#<!-- -->24 0x0000562fa49a40f2 mlir::PassManager::runPasses(mlir::Operation*, mlir::AnalysisManager) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa3400f2)
#<!-- -->25 0x0000562fa49a50f9 mlir::PassManager::run(mlir::Operation*) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa3410f9)
#<!-- -->26 0x0000562f9c5b35f7 performActions(llvm::raw_ostream&amp;, std::shared_ptr&lt;llvm::SourceMgr&gt; const&amp;, mlir::MLIRContext*, mlir::MlirOptMainConfig const&amp;) MlirOptMain.cpp:0:0
#<!-- -->27 0x0000562f9c5b3fc7 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
#<!-- -->28 0x0000562fa4d879bd 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) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa7239bd)
#<!-- -->29 0x0000562f9c5aef3a 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
#<!-- -->30 0x0000562f9c5b4708 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&amp;) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1f50708)
#<!-- -->31 0x0000562f9c5b4964 mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&amp;) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1f50964)
#<!-- -->32 0x0000562f9c441a5c main (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1ddda5c)
#<!-- -->33 0x00007ff6533b4d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#<!-- -->34 0x00007ff6533b4e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#<!-- -->35 0x0000562f9c4cff65 _start (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1e6bf65)
Aborted (core dumped)

Retested on the latest LLVM revision (880b33a), and the issue is no longer reproducible.

frida-albrecht avatar Nov 02 '26 14:11 frida-albrecht

I confirmed that this crash is fixed by #227102.

Men-cotton avatar Nov 02 '26 19:11 Men-cotton

@llvm/issue-subscribers-mlir-spirv

Author: frida-albrecht

The `--convert-tensor-to-spirv` pass crashes when processing an arith.sitofp operation with tensor operands.

The crash occurs in IntToFPPattern::matchAndRewrite in ArithToSPIRV.cpp, where Type::getIntOrFloatBitWidth() is called on a non-scalar type, triggering the following assertion: Assertion isIntOrFloat() && "only integers and floats have a bitwidth"' failed`.

test commit: 7a941df

test case:

module {
  func.func private @<!-- -->main(%arg0: tensor&lt;6x4x6xi8&gt;) -&gt; tensor&lt;6x4x6xf32&gt; {
    %0 = arith.sitofp %arg0 : tensor&lt;6x4x6xi8&gt; to tensor&lt;6x4x6xf32&gt;
    return %0 : tensor&lt;6x4x6xf32&gt;
  }
}

Step to reproduce:

mlir-opt test.mlir  --convert-tensor-to-spirv

Crash backtrace:

mlir-opt: /home/llvm-project/llvm-project-23.1.4/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: /home/llvm-project/build-23.1.4/bin/mlir-opt /home/llvm-project/results/verify_test/174.mlir --convert-tensor-to-spirv
 #<!-- -->0 0x0000562f9c4f0529 llvm::sys::PrintStackTrace(llvm::raw_ostream&amp;, int) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1e8c529)
 #<!-- -->1 0x0000562f9c4ecd0c llvm::sys::RunSignalHandlers() (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1e88d0c)
 #<!-- -->2 0x0000562f9c4ece72 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #<!-- -->3 0x00007ff6533cd520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #<!-- -->4 0x00007ff6534219bc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969bc)
 #<!-- -->5 0x00007ff6533cd476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #<!-- -->6 0x00007ff6533b37f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #<!-- -->7 0x00007ff6533b371b (/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
 #<!-- -->8 0x00007ff6533c4e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
 #<!-- -->9 0x0000562fa4d62d7f mlir::Type::getIntOrFloatBitWidth() const (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa6fed7f)
#<!-- -->10 0x0000562fa02e5516 (anonymous namespace)::IntToFPPattern&lt;mlir::arith::SIToFPOp, mlir::spirv::ConvertSToFOp, true&gt;::matchAndRewrite(mlir::arith::SIToFPOp, mlir::arith::SIToFPOpAdaptor, mlir::ConversionPatternRewriter&amp;) const ArithToSPIRV.cpp:0:0
#<!-- -->11 0x0000562f9dcfbb07 llvm::LogicalResult mlir::ConversionPattern::dispatchTo1To1&lt;mlir::OpConversionPattern&lt;mlir::arith::SIToFPOp&gt;, mlir::arith::SIToFPOp&gt;(mlir::OpConversionPattern&lt;mlir::arith::SIToFPOp&gt; const&amp;, mlir::arith::SIToFPOp, mlir::arith::SIToFPOp::GenericAdaptor&lt;llvm::ArrayRef&lt;mlir::ValueRange&gt;&gt;, mlir::ConversionPatternRewriter&amp;) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x3697b07)
#<!-- -->12 0x0000562f9dcfbce1 mlir::OpConversionPattern&lt;mlir::arith::SIToFPOp&gt;::matchAndRewrite(mlir::Operation*, llvm::ArrayRef&lt;mlir::ValueRange&gt;, mlir::ConversionPatternRewriter&amp;) const (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x3697ce1)
#<!-- -->13 0x0000562fa48efe2f mlir::ConversionPattern::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&amp;) const (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa28be2f)
#<!-- -->14 0x0000562fa4936b51 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
#<!-- -->15 0x0000562fa49381bf 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;) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa2d41bf)
#<!-- -->16 0x0000562fa48e9cdb (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*) DialectConversion.cpp:0:0
#<!-- -->17 0x0000562fa48ea194 mlir::OperationConverter::convert(mlir::Operation*, bool) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa286194)
#<!-- -->18 0x0000562fa48f3d66 mlir::OperationConverter::applyConversion(llvm::ArrayRef&lt;mlir::Operation*&gt;) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa28fd66)
#<!-- -->19 0x0000562fa48f539f applyConversion(llvm::ArrayRef&lt;mlir::Operation*&gt;, mlir::ConversionTarget const&amp;, mlir::FrozenRewritePatternSet const&amp;, mlir::ConversionConfig, (anonymous namespace)::OpConversionMode) DialectConversion.cpp:0:0
#<!-- -->20 0x0000562fa48f5556 mlir::applyPartialConversion(mlir::Operation*, mlir::ConversionTarget const&amp;, mlir::FrozenRewritePatternSet const&amp;, mlir::ConversionConfig) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa291556)
#<!-- -->21 0x0000562fa02d05dc (anonymous namespace)::ConvertTensorToSPIRVPass::runOnOperation() TensorToSPIRVPass.cpp:0:0
#<!-- -->22 0x0000562fa49a1d09 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa33dd09)
#<!-- -->23 0x0000562fa49a2074 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&amp;, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa33e074)
#<!-- -->24 0x0000562fa49a40f2 mlir::PassManager::runPasses(mlir::Operation*, mlir::AnalysisManager) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa3400f2)
#<!-- -->25 0x0000562fa49a50f9 mlir::PassManager::run(mlir::Operation*) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa3410f9)
#<!-- -->26 0x0000562f9c5b35f7 performActions(llvm::raw_ostream&amp;, std::shared_ptr&lt;llvm::SourceMgr&gt; const&amp;, mlir::MLIRContext*, mlir::MlirOptMainConfig const&amp;) MlirOptMain.cpp:0:0
#<!-- -->27 0x0000562f9c5b3fc7 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
#<!-- -->28 0x0000562fa4d879bd 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) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0xa7239bd)
#<!-- -->29 0x0000562f9c5aef3a 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
#<!-- -->30 0x0000562f9c5b4708 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&amp;) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1f50708)
#<!-- -->31 0x0000562f9c5b4964 mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&amp;) (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1f50964)
#<!-- -->32 0x0000562f9c441a5c main (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1ddda5c)
#<!-- -->33 0x00007ff6533b4d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#<!-- -->34 0x00007ff6533b4e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#<!-- -->35 0x0000562f9c4cff65 _start (/home/llvm-project/build-23.1.4/bin/mlir-opt+0x1e6bf65)
Aborted (core dumped)