[DAGCombiner] Make the isTruncateOf call from visitZERO_EXTEND work for vectors....
authorCraig Topper <craig.topper@intel.com>
Thu, 1 Nov 2018 23:21:45 +0000 (23:21 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 1 Nov 2018 23:21:45 +0000 (23:21 +0000)
commite2483020f277d2efa46c79238b9b325aa9f2f684
tree890800d74619d3b164ea95e079f5b26e793db08b
parent7a782cce35b75c2cfb840262964c9ab7e4bdaa66
[DAGCombiner] Make the isTruncateOf call from visitZERO_EXTEND work for vectors. Remove FIXME.

I'm having trouble creating a test case for the ISD::TRUNCATE part of this that shows any codegen differences. But I was able to test the setcc path which is what the test changes here cover.

llvm-svn: 345908
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/vector-pcmp.ll