[X86][SSE] Fixed issue with commutation of 'faux unary' target shuffles (PR26667)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 20 Feb 2016 14:39:45 +0000 (14:39 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 20 Feb 2016 14:39:45 +0000 (14:39 +0000)
commitecb04335996898caaa3f87cde5d797bde8da2a4d
treea3d56916d159bd8ec81d533c0063a1c9ee8f9338
parentccf2cce67cf545f4bed029b8feb027ca783a2e00
[X86][SSE] Fixed issue with commutation of 'faux unary' target shuffles (PR26667)

Fixed a bug introduced by D16683 when a binary shuffle is simplified to a unary shuffle (with undef/zero sentinel mask indices) - if this resulted in only the second input being used combineX86ShuffleChain failed to take this into account and still referenced the first input.

llvm-svn: 261434
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/avx-intrinsics-fast-isel.ll