forked from OSchip/llvm-project
Remove DebugLoc argument from static function. It can easily be obtained from the SVOp passed in.
llvm-svn: 172935
This commit is contained in:
parent
44d7b4f6bf
commit
4ac87da529
|
@ -6135,8 +6135,9 @@ SDValue LowerVECTOR_SHUFFLEv32i8(ShuffleVectorSDNode *SVOp,
|
|||
/// vector_shuffle X, Y, <2, 3, | 10, 11, | 0, 1, | 14, 15>
|
||||
static
|
||||
SDValue RewriteAsNarrowerShuffle(ShuffleVectorSDNode *SVOp,
|
||||
SelectionDAG &DAG, DebugLoc dl) {
|
||||
SelectionDAG &DAG) {
|
||||
MVT VT = SVOp->getValueType(0).getSimpleVT();
|
||||
DebugLoc dl = SVOp->getDebugLoc();
|
||||
unsigned NumElems = VT.getVectorNumElements();
|
||||
MVT NewVT;
|
||||
unsigned Scale;
|
||||
|
@ -6691,7 +6692,7 @@ X86TargetLowering::NormalizeVectorShuffle(SDValue Op, SelectionDAG &DAG) const {
|
|||
// do it!
|
||||
if (VT == MVT::v8i16 || VT == MVT::v16i8 ||
|
||||
VT == MVT::v16i16 || VT == MVT::v32i8) {
|
||||
SDValue NewOp = RewriteAsNarrowerShuffle(SVOp, DAG, dl);
|
||||
SDValue NewOp = RewriteAsNarrowerShuffle(SVOp, DAG);
|
||||
if (NewOp.getNode())
|
||||
return DAG.getNode(ISD::BITCAST, dl, VT, NewOp);
|
||||
} else if ((VT == MVT::v4i32 ||
|
||||
|
@ -6699,7 +6700,7 @@ X86TargetLowering::NormalizeVectorShuffle(SDValue Op, SelectionDAG &DAG) const {
|
|||
// FIXME: Figure out a cleaner way to do this.
|
||||
// Try to make use of movq to zero out the top part.
|
||||
if (ISD::isBuildVectorAllZeros(V2.getNode())) {
|
||||
SDValue NewOp = RewriteAsNarrowerShuffle(SVOp, DAG, dl);
|
||||
SDValue NewOp = RewriteAsNarrowerShuffle(SVOp, DAG);
|
||||
if (NewOp.getNode()) {
|
||||
MVT NewVT = NewOp.getValueType().getSimpleVT();
|
||||
if (isCommutedMOVLMask(cast<ShuffleVectorSDNode>(NewOp)->getMask(),
|
||||
|
@ -6708,7 +6709,7 @@ X86TargetLowering::NormalizeVectorShuffle(SDValue Op, SelectionDAG &DAG) const {
|
|||
DAG, Subtarget, dl);
|
||||
}
|
||||
} else if (ISD::isBuildVectorAllZeros(V1.getNode())) {
|
||||
SDValue NewOp = RewriteAsNarrowerShuffle(SVOp, DAG, dl);
|
||||
SDValue NewOp = RewriteAsNarrowerShuffle(SVOp, DAG);
|
||||
if (NewOp.getNode()) {
|
||||
MVT NewVT = NewOp.getValueType().getSimpleVT();
|
||||
if (isMOVLMask(cast<ShuffleVectorSDNode>(NewOp)->getMask(), NewVT))
|
||||
|
|
Loading…
Reference in New Issue