OSDN Git Service

[DAG] Don't try to create an INSERT_SUBVECTOR with an illegal source
authorMichael Kuperstein <mkuper@google.com>
Wed, 15 Feb 2017 18:37:26 +0000 (18:37 +0000)
committerMichael Kuperstein <mkuper@google.com>
Wed, 15 Feb 2017 18:37:26 +0000 (18:37 +0000)
commit2b723d3caf1c0093a7549090b60cd3dc08bece01
treef2e50e56cee33fb5b9cda61791a83d1978a3c05f
parent3ea75c611e2e45bde9c39995990cbd51bd9485e5
[DAG] Don't try to create an INSERT_SUBVECTOR with an illegal source

We currently can't legalize those, but we should really not be creating
them in the first place, since legalization would probably look similar to the
way we legalize CONCAT_VECTORS - basically replace the INSERT with a BUILD.

This fixes PR311956.

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

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