[DAGCombiner] limit shuffle to extend transform (PR40146)
authorSanjay Patel <spatel@rotateright.com>
Sun, 23 Dec 2018 20:48:31 +0000 (20:48 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 23 Dec 2018 20:48:31 +0000 (20:48 +0000)
commit93f1074677edb685ae11e154dbe81b7130a0c226
tree02f6a913d74d832e616c3a84e7b2acefefd0f263
parent9e5588e1dfbd2baa9e9510793d56807a6798cefa
[DAGCombiner] limit shuffle to extend transform (PR40146)

It's dangerous to knowingly create an illegal vector type
no matter what stage of combining we're in.

This prevents the missed folding/scalarization seen in:
https://bugs.llvm.org/show_bug.cgi?id=40146

llvm-svn: 350034
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/vec_cast3.ll