https://github.com/davemgreen commented: Thanks for looking into this, I didn't get too far when looking into it before. Should it be scalarizing somewhere along the line? I would expect that to produce better codegen. https://github.com/llvm/llvm-project/pull/140274