mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-06 05:06:45 +00:00
Remove DebugLoc argument from static function. It can easily be obtained from the SVOp passed in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172935 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
45e1c75833
commit
3b2aba09e2
@ -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
Block a user