summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-10-29 22:03:02 +0000
committerBob Wilson <bob.wilson@apple.com>2010-10-29 22:03:02 +0000
commit08882be86ca98a7f8d83bb40b6a56194b5b6b52d (patch)
tree3cf32f6d3daa188d0cac6126b60e2ac99acb3aea /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parentcb11b48e7a9d438defa72ed96001ec3f26509378 (diff)
downloadbcm5719-llvm-08882be86ca98a7f8d83bb40b6a56194b5b6b52d.tar.gz
bcm5719-llvm-08882be86ca98a7f8d83bb40b6a56194b5b6b52d.zip
Remove DAG combiner patch to fold vector splats. Instcombiner does it now.
llvm-svn: 117720
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index d09ae2d20ef..602d5bfcaf4 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -6362,11 +6362,6 @@ SDValue DAGCombiner::visitVECTOR_SHUFFLE(SDNode *N) {
V = ConvInput.getNode();
}
- // Fold a splat of a splat.
- ShuffleVectorSDNode *SVV = dyn_cast<ShuffleVectorSDNode>(V);
- if (SVV && SVV->isSplat())
- return N0;
-
if (V->getOpcode() == ISD::BUILD_VECTOR) {
assert(V->getNumOperands() == NumElts &&
"BUILD_VECTOR has wrong number of operands");
OpenPOWER on IntegriCloud