summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commite2e8f2d96bf3692e6294907d071c1b33719dba8b (patch)
treea06a6541d03045d01ce594aac798e32a47e7db7b /llvm/lib/CodeGen
parent8d4dcc54099e7c734fee4fcedd44151b13074edd (diff)
downloadbcm5719-llvm-e2e8f2d96bf3692e6294907d071c1b33719dba8b.tar.gz
bcm5719-llvm-e2e8f2d96bf3692e6294907d071c1b33719dba8b.zip
Fix a bogus splat xform:
shuffle <undef, undef, x, undef>, <undef, undef, undef, undef>, <2, 2, 2, 2> != <undef, undef, x, undef> llvm-svn: 42111
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 771515539a5..7d697f11022 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud