mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-15 18:49:51 +00:00
revert inadvertent change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233294 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4ce65681f2
commit
69688b956a
@ -11972,7 +11972,6 @@ SDValue DAGCombiner::visitVECTOR_SHUFFLE(SDNode *N) {
|
|||||||
|
|
||||||
// Canonicalize any other splat as a build_vector.
|
// Canonicalize any other splat as a build_vector.
|
||||||
const SDValue &Splatted = V->getOperand(SVN->getSplatIndex());
|
const SDValue &Splatted = V->getOperand(SVN->getSplatIndex());
|
||||||
if (isa<ConstantSDNode>(Splatted) || isa<ConstantFPSDNode>(Splatted)) {
|
|
||||||
SmallVector<SDValue, 8> Ops(NumElts, Splatted);
|
SmallVector<SDValue, 8> Ops(NumElts, Splatted);
|
||||||
SDValue NewBV = DAG.getNode(ISD::BUILD_VECTOR, SDLoc(N),
|
SDValue NewBV = DAG.getNode(ISD::BUILD_VECTOR, SDLoc(N),
|
||||||
V->getValueType(0), Ops);
|
V->getValueType(0), Ops);
|
||||||
@ -11982,7 +11981,6 @@ SDValue DAGCombiner::visitVECTOR_SHUFFLE(SDNode *N) {
|
|||||||
if (V->getValueType(0) != VT)
|
if (V->getValueType(0) != VT)
|
||||||
NewBV = DAG.getNode(ISD::BITCAST, SDLoc(N), VT, NewBV);
|
NewBV = DAG.getNode(ISD::BITCAST, SDLoc(N), VT, NewBV);
|
||||||
return NewBV;
|
return NewBV;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user