Skip to content

[mlir] remove-dead-values pass throws error when module has a name #107870

Closed
@mrakitaTT

Description

@mrakitaTT

When the input mlir module has a name, like this for example:

module @test_opt attributes {} {
  func.func public @test_opt(%arg0: tensor<128x10xf32>) -> tensor<128x10xf32> {
    %0 = tensor.empty() : tensor<64x96xbf16>
    // CHECK-NOT: %[[C:.*]] = tensor.empty[[C:.*]]
    return %arg0 : tensor<128x10xf32>
  }
}

then remove-dead-values pass throws this error:

error: cannot optimize an IR with non-function symbol ops, non-call symbol user ops or branch ops

After removing module name (@test_opt) everything works. Seems to be a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions