Issue 107870
Summary [mlir] remove-dead-values pass throws error when module has a name
Labels mlir
Assignees
Reporter 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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to