This pass uses the rewriter API incorrectly: it calls `replaceAllUsesWith`. This will start failing with #155244. Instead of a dialect conversion, use the walk-patterns driver, which is also more efficient.
This pass uses the rewriter API incorrectly: it calls `replaceAllUsesWith`. This will start failing with #155244. Instead of a dialect conversion, use the walk-patterns driver, which is also more efficient.