https://github.com/david-arm commented: Overall this patch looks like a win by generally reducing the lines of emitted IR! I just have a few comments on the implementation and some observations on the tests. https://github.com/llvm/llvm-project/pull/95305