Teach DAG combine to handle vector logical operations with vectors of all 1s or all...
authorCraig Topper <craig.topper@gmail.com>
Sat, 8 Dec 2012 22:49:19 +0000 (22:49 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 8 Dec 2012 22:49:19 +0000 (22:49 +0000)
commit9472b4fbf96fb840eb416acd00bbee173c62e8da
tree8c060d25d7511409e33632b88955d17f08c1606f
parent7065a2bcec3b775da12cf8fbcd6fa972d5f2afeb
Teach DAG combine to handle vector logical operations with vectors of all 1s or all 0s. These cases can show up when vectors are split for legalizing. Fix some tests that were dependent on these cases not being combined.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169684 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/2011-11-30-or.ll
test/CodeGen/X86/fold-pcmpeqd-2.ll
test/CodeGen/X86/sse2-blend.ll