[llvm] r233294 - revert inadvertent change
Sanjay Patel
spatel at rotateright.com
Thu Mar 26 10:19:24 PDT 2015
Author: spatel
Date: Thu Mar 26 12:19:24 2015
New Revision: 233294
URL: http://llvm.org/viewvc/llvm-project?rev=233294&view=rev
Log:
revert inadvertent change
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=233294&r1=233293&r2=233294&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Thu Mar 26 12:19:24 2015
@@ -11972,7 +11972,6 @@ SDValue DAGCombiner::visitVECTOR_SHUFFLE
// Canonicalize any other splat as a build_vector.
const SDValue &Splatted = V->getOperand(SVN->getSplatIndex());
- if (isa<ConstantSDNode>(Splatted) || isa<ConstantFPSDNode>(Splatted)) {
SmallVector<SDValue, 8> Ops(NumElts, Splatted);
SDValue NewBV = DAG.getNode(ISD::BUILD_VECTOR, SDLoc(N),
V->getValueType(0), Ops);
@@ -11982,7 +11981,6 @@ SDValue DAGCombiner::visitVECTOR_SHUFFLE
if (V->getValueType(0) != VT)
NewBV = DAG.getNode(ISD::BITCAST, SDLoc(N), VT, NewBV);
return NewBV;
- }
}
}
More information about the llvm-commits
mailing list