diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2015-03-26 17:18:17 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2015-03-26 17:18:17 +0000 |
| commit | 4fa4a886d7cb0a4f0309510b861cab5664620d6a (patch) | |
| tree | 72f253aae1a49d10314de1dc148be69ec8eb06d5 /llvm/lib/CodeGen/SelectionDAG | |
| parent | 3d0031e0b8d3f2099e7d0278ef74e9d68a7fe15f (diff) | |
| download | bcm5719-llvm-4fa4a886d7cb0a4f0309510b861cab5664620d6a.tar.gz bcm5719-llvm-4fa4a886d7cb0a4f0309510b861cab5664620d6a.zip | |
comment cleanup; NFC
llvm-svn: 233293
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index a1c84c5cf09..bd9a4fe0ef0 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -11972,6 +11972,7 @@ SDValue DAGCombiner::visitVECTOR_SHUFFLE(SDNode *N) { // 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); @@ -11981,6 +11982,7 @@ SDValue DAGCombiner::visitVECTOR_SHUFFLE(SDNode *N) { if (V->getValueType(0) != VT) NewBV = DAG.getNode(ISD::BITCAST, SDLoc(N), VT, NewBV); return NewBV; + } } } |

