diff options
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 707e48add40..c8daea9a8b6 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -10764,7 +10764,7 @@ SDValue DAGCombiner::visitVECTOR_SHUFFLE(SDNode *N) { // It may still be beneficial to combine the two shuffles if the // resulting shuffle is legal. - if (TLI.isShuffleMaskLegal(Mask, VT)) { + if (TLI.isTypeLegal(VT) && TLI.isShuffleMaskLegal(Mask, VT)) { if (!CommuteOperands) // shuffle(shuffle(x, undef, M1), undef, M2) -> shuffle(x, undef, M3). // shuffle(shuffle(x, y, M1), undef, M2) -> shuffle(x, undef, M3) |

