A fix for 9165.
authorNadav Rotem <nadav.rotem@intel.com>
Sat, 12 Feb 2011 14:40:33 +0000 (14:40 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Sat, 12 Feb 2011 14:40:33 +0000 (14:40 +0000)
commit609d54ee1e715af57e499c2cd10ff5a9ba89b9f2
treed8717486235f7bce657041770ce999f245cada01
parentf922c47143d247cbae14b294a0bada139bcd35f6
A fix for 9165.

The DAGCombiner created illegal BUILD_VECTOR operations.
The patch added a check that either illegal operations are
allowed or that the created operation is legal.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125435 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/Generic/2011-02-12-shuffle.ll [new file with mode: 0644]