@@ -6135,8 +6135,9 @@ SDValue LowerVECTOR_SHUFFLEv32i8(ShuffleVectorSDNode *SVOp,
6135
6135
/// vector_shuffle X, Y, <2, 3, | 10, 11, | 0, 1, | 14, 15>
6136
6136
static
6137
6137
SDValue RewriteAsNarrowerShuffle(ShuffleVectorSDNode *SVOp,
6138
- SelectionDAG &DAG, DebugLoc dl ) {
6138
+ SelectionDAG &DAG) {
6139
6139
MVT VT = SVOp->getValueType(0).getSimpleVT();
6140
+ DebugLoc dl = SVOp->getDebugLoc();
6140
6141
unsigned NumElems = VT.getVectorNumElements();
6141
6142
MVT NewVT;
6142
6143
unsigned Scale;
@@ -6691,15 +6692,15 @@ X86TargetLowering::NormalizeVectorShuffle(SDValue Op, SelectionDAG &DAG) const {
6691
6692
// do it!
6692
6693
if (VT == MVT::v8i16 || VT == MVT::v16i8 ||
6693
6694
VT == MVT::v16i16 || VT == MVT::v32i8) {
6694
- SDValue NewOp = RewriteAsNarrowerShuffle(SVOp, DAG, dl );
6695
+ SDValue NewOp = RewriteAsNarrowerShuffle(SVOp, DAG);
6695
6696
if (NewOp.getNode())
6696
6697
return DAG.getNode(ISD::BITCAST, dl, VT, NewOp);
6697
6698
} else if ((VT == MVT::v4i32 ||
6698
6699
(VT == MVT::v4f32 && Subtarget->hasSSE2()))) {
6699
6700
// FIXME: Figure out a cleaner way to do this.
6700
6701
// Try to make use of movq to zero out the top part.
6701
6702
if (ISD::isBuildVectorAllZeros(V2.getNode())) {
6702
- SDValue NewOp = RewriteAsNarrowerShuffle(SVOp, DAG, dl );
6703
+ SDValue NewOp = RewriteAsNarrowerShuffle(SVOp, DAG);
6703
6704
if (NewOp.getNode()) {
6704
6705
MVT NewVT = NewOp.getValueType().getSimpleVT();
6705
6706
if (isCommutedMOVLMask(cast<ShuffleVectorSDNode>(NewOp)->getMask(),
@@ -6708,7 +6709,7 @@ X86TargetLowering::NormalizeVectorShuffle(SDValue Op, SelectionDAG &DAG) const {
6708
6709
DAG, Subtarget, dl);
6709
6710
}
6710
6711
} else if (ISD::isBuildVectorAllZeros(V1.getNode())) {
6711
- SDValue NewOp = RewriteAsNarrowerShuffle(SVOp, DAG, dl );
6712
+ SDValue NewOp = RewriteAsNarrowerShuffle(SVOp, DAG);
6712
6713
if (NewOp.getNode()) {
6713
6714
MVT NewVT = NewOp.getValueType().getSimpleVT();
6714
6715
if (isMOVLMask(cast<ShuffleVectorSDNode>(NewOp)->getMask(), NewVT))
0 commit comments