Refactor the code that checks that all operands of a node are UNDEFs.
authorNadav Rotem <nadav.rotem@intel.com>
Sun, 15 Jul 2012 08:38:23 +0000 (08:38 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Sun, 15 Jul 2012 08:38:23 +0000 (08:38 +0000)
commitb87bdac6a3de4ab83e23bf808f990e4bb7eade5e
tree4b6d565bbdbb5946bef17337c65c3914e1ac3f79
parent7d532c8d0742ebd107e5fd58ae23ecea5c55d19e
Refactor the code that checks that all operands of a node are UNDEFs.
Add a micro-optimization to getNode of CONCAT_VECTORS when both operands are undefs.
Can't find a testcase for this because VECTOR_SHUFFLE already handles undef operands, but Duncan suggested that we add this.

Together with Michael Kuperstein <michael.m.kuperstein@intel.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160229 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAGNodes.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp