RKSimon added a comment. Thanks Sanjay, in the commit I was able to move the patch inside the insertf128 lowering code - this means that AVX2 targets still use perm2f128/perm2i128 in some unary shuffles. Repository: rL LLVM http://reviews.llvm.org/D19228