From 8d68c2b521af0070408257c4ef586ee1679f498d Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 18 Sep 2007 21:54:37 +0000 Subject: Fix a bogus splat xform: shuffle , , <2, 2, 2, 2> != git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42111 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 7715155..7d697f1 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -4093,8 +4093,7 @@ SDOperand DAGCombiner::visitVECTOR_SHUFFLE(SDNode *N) { if (!Base.Val) return N0; for (unsigned i = 0; i != NumElems; ++i) { - if (V->getOperand(i).getOpcode() != ISD::UNDEF && - V->getOperand(i) != Base) { + if (V->getOperand(i) != Base) { AllSame = false; break; } -- cgit v1.1