[DAG] Remove isVectorClearMaskLegal() check from vector_build dagcombine
authorMichael Kuperstein <mkuper@google.com>
Wed, 28 Sep 2016 06:13:58 +0000 (06:13 +0000)
committerMichael Kuperstein <mkuper@google.com>
Wed, 28 Sep 2016 06:13:58 +0000 (06:13 +0000)
commit3e06eafc2089f4c8ebca4ce632a29161d3a15df1
tree12b9029f88a476142ce85a4b3733690c5a4f1668
parent536ff0dd2f3b5c27de5c2ad0bd19ab424aae9f09
[DAG] Remove isVectorClearMaskLegal() check from vector_build dagcombine

This check currently doesn't seem to do anything useful on any in-tree target:
On non-x86, it always evaluates to false, so we never hit the code path that
creates the shuffle with zero.
On x86, it just forwards to isShuffleMaskLegal(), which is a reasonable thing to
query in general, but doesn't make sense if only restricted to zero blends.

Differential Revision: https://reviews.llvm.org/D24625

llvm-svn: 282567
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/AMDGPU/r600-export-fix.ll
llvm/test/CodeGen/SystemZ/vec-perm-13.ll