https://github.com/lei137 approved this pull request. This look like a nice optimization on existing codegen. Would appreciate it if some documentation can be added for the new functions. https://github.com/llvm/llvm-project/pull/165910