aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-09-18 21:54:37 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-09-18 21:54:37 +0000
commit8d68c2b521af0070408257c4ef586ee1679f498d (patch)
tree553c59a9339a081ce668853714137f31a6be63fb /lib
parentc5b4c21f9c8010f469acf572e078bddbd7b19c80 (diff)
downloadexternal_llvm-8d68c2b521af0070408257c4ef586ee1679f498d.zip
external_llvm-8d68c2b521af0070408257c4ef586ee1679f498d.tar.gz
external_llvm-8d68c2b521af0070408257c4ef586ee1679f498d.tar.bz2
Fix a bogus splat xform:
shuffle <undef, undef, x, undef>, <undef, undef, undef, undef>, <2, 2, 2, 2> != <undef, undef, x, undef> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/DAGCombiner.cpp3
1 files changed, 1 insertions, 2 deletions
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;
}