Don't pull vector sext through both hands of a logical operation, since doing so...
authorNate Begeman <natebegeman@mac.com>
Thu, 3 Dec 2009 07:11:29 +0000 (07:11 +0000)
committerNate Begeman <natebegeman@mac.com>
Thu, 3 Dec 2009 07:11:29 +0000 (07:11 +0000)
commit93e0ed31c54cea6bf3f1f20244bd56a4770b2780
tree3e733ab19e10d46e772bb535d27f76846387197c
parent56856b1f46ec1f073ceef4e826c544b8b1691608
Don't pull vector sext through both hands of a logical operation, since doing so prevents the fusion of vector sext and setcc into vsetcc.
Add a testcase for the above transformation.
Fix a bogus use of APInt noticed while tracking this down.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90423 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/vec_compare-2.ll [new file with mode: 0644]