Closed
Description
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.