[DAG] Refactor BUILD_VECTOR combine to make it easier to extend. NFCI.
authorMichael Kuperstein <mkuper@google.com>
Tue, 13 Sep 2016 00:57:43 +0000 (00:57 +0000)
committerMichael Kuperstein <mkuper@google.com>
Tue, 13 Sep 2016 00:57:43 +0000 (00:57 +0000)
commitefc066758309683482edd289d82ec7670d38931f
tree43b9d29d83fc97c3e3d74fae9761d75346dda0ec
parentb82825b6d57afb267e263d45e78a3d28587e1c6f
[DAG] Refactor BUILD_VECTOR combine to make it easier to extend. NFCI.

This should make it easier to add cases that we currently don't cover,
like supporting more kinds of type mismatches and more than 2 input vectors.

llvm-svn: 281283
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp