Closed mrakitaTT closed 1 month ago
It's not clear to me that the "unsupported" aspect is intentional or just an accident of the implementation that didn't consider that the walk would apply to the module itself and that it could also have a name?
That is can we just add:
WalkResult acceptableIR = module->walk([&](Operation *op) {
if (op == module) return WalkResult::advance();
When the input mlir module has a name, like this for example:
then
remove-dead-values
pass throws this error:After removing module name (
@test_opt
) everything works. Seems to be a bug.