Fixed a bug in lowering shuffle_vectors to insertps
authorFilipe Cabecinhas <me@filcab.net>
Fri, 6 Jun 2014 18:07:06 +0000 (18:07 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Fri, 6 Jun 2014 18:07:06 +0000 (18:07 +0000)
commit78cf19b9b98e7ea3d4873fc5b1496c1835221951
treef273ed22e3f5f3d20649d0eb0d55dd437aa48f5b
parent64d39d3281aaabc09ee792312a48251fd3114a3b
Fixed a bug in lowering shuffle_vectors to insertps

Summary:
We were being too strict and not accounting for undefs.
Added a test case and fixed another one where we improved codegen.

Reviewers: grosbach, nadav, delena

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D4039

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210361 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/avx-shuffle.ll
test/CodeGen/X86/sse41.ll