https://github.com/shiltian commented: Seems readable to me, though I thought the size mismatch is handled by legalizer instead of selection. I'm not very familiar with GISel, so I'll leave it to someone else. https://github.com/llvm/llvm-project/pull/217048