In #153973 I added the correctly handling of block arguments, unfortunately this was gated on operation that also have results. This wasn't intentional and this excluded operations like function from being correctly processed.
unrealized_conversion_cast
getArgOperandsMutable()
test-legalize-mode
ConversionPatternRewriter::replaceAllUsesWith