This seems fine to me, but I know Filipe has been looking at build-vector and related code paths in the x86 backend so I'd like to make sure he's ok sending more code down that path before you submit. Thanks! http://reviews.llvm.org/D4934