diff options
author | Bob Wilson <bob.wilson@apple.com> | 2010-10-29 22:03:02 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2010-10-29 22:03:02 +0000 |
commit | 46455096bea2b6c81bb4b0226701524d2a9eb242 (patch) | |
tree | 91d8f5ad7e42956e19187dcf192927c612462e28 /lib/CodeGen/SelectionDAG | |
parent | 4cac5facc3a95a81ffa2c85baae001a7c509146c (diff) | |
download | external_llvm-46455096bea2b6c81bb4b0226701524d2a9eb242.zip external_llvm-46455096bea2b6c81bb4b0226701524d2a9eb242.tar.gz external_llvm-46455096bea2b6c81bb4b0226701524d2a9eb242.tar.bz2 |
Remove DAG combiner patch to fold vector splats. Instcombiner does it now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117720 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index d09ae2d..602d5bf 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/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"); |