Skip to content

[mlir] SEGV when converting arith op to llvm #172258

@YuanchengJiang

Description

@YuanchengJiang
#CSR = #sparse_tensor.encoding<{map = (d0, d1) -> (d0 : dense, d1 : compressed)}>

module {
  func.func @crash_target(%arg0: tensor<10x20xf16, #CSR>) {
    // The pass attempts to convert this arith op and potentially reconciles 
    // the function signature, crashing on the unhandled sparse tensor type.
    %0 = arith.constant 0.0 : f64
    return
  }
}

reproduce: mlir-opt -pass-pipeline="builtin.module(func.func(convert-arith-to-llvm))" ./test.mlir

Segmentation fault (core dumped)

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashPrefer [crash-on-valid] or [crash-on-invalid]mlir

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions