RKSimon added a comment. Please can you rebase to trunk latest? I've added the current codegen from your tests and your patch appears to introduce scalarization regressions for SSE targets. https://reviews.llvm.org/D25987