mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Use getSimpleValueType in a few spots where the type should be simple.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198117 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
93bc4bb603
commit
63c436884c
@ -11917,7 +11917,7 @@ static SDValue getGatherNode(unsigned Opc, SDValue Op, SelectionDAG &DAG,
|
||||
SDValue Scale = DAG.getTargetConstant(C->getZExtValue(), MVT::i8);
|
||||
SDValue Src = getZeroVector(Op.getValueType(), Subtarget, DAG, dl);
|
||||
EVT MaskVT = MVT::getVectorVT(MVT::i1,
|
||||
Index.getValueType().getVectorNumElements());
|
||||
Index.getSimpleValueType().getVectorNumElements());
|
||||
SDValue MaskInReg = DAG.getConstant(~0, MaskVT);
|
||||
SDVTList VTs = DAG.getVTList(Op.getValueType(), MaskVT, MVT::Other);
|
||||
SDValue Disp = DAG.getTargetConstant(0, MVT::i32);
|
||||
@ -11937,7 +11937,7 @@ static SDValue getMGatherNode(unsigned Opc, SDValue Op, SelectionDAG &DAG,
|
||||
assert(C && "Invalid scale type");
|
||||
SDValue Scale = DAG.getTargetConstant(C->getZExtValue(), MVT::i8);
|
||||
EVT MaskVT = MVT::getVectorVT(MVT::i1,
|
||||
Index.getValueType().getVectorNumElements());
|
||||
Index.getSimpleValueType().getVectorNumElements());
|
||||
SDValue MaskInReg = DAG.getNode(ISD::BITCAST, dl, MaskVT, Mask);
|
||||
SDVTList VTs = DAG.getVTList(Op.getValueType(), MaskVT, MVT::Other);
|
||||
SDValue Disp = DAG.getTargetConstant(0, MVT::i32);
|
||||
@ -11960,7 +11960,7 @@ static SDValue getScatterNode(unsigned Opc, SDValue Op, SelectionDAG &DAG,
|
||||
SDValue Disp = DAG.getTargetConstant(0, MVT::i32);
|
||||
SDValue Segment = DAG.getRegister(0, MVT::i32);
|
||||
EVT MaskVT = MVT::getVectorVT(MVT::i1,
|
||||
Index.getValueType().getVectorNumElements());
|
||||
Index.getSimpleValueType().getVectorNumElements());
|
||||
SDValue MaskInReg = DAG.getConstant(~0, MaskVT);
|
||||
SDVTList VTs = DAG.getVTList(MaskVT, MVT::Other);
|
||||
SDValue Ops[] = {Base, Scale, Index, Disp, Segment, MaskInReg, Src, Chain};
|
||||
@ -11978,7 +11978,7 @@ static SDValue getMScatterNode(unsigned Opc, SDValue Op, SelectionDAG &DAG,
|
||||
SDValue Disp = DAG.getTargetConstant(0, MVT::i32);
|
||||
SDValue Segment = DAG.getRegister(0, MVT::i32);
|
||||
EVT MaskVT = MVT::getVectorVT(MVT::i1,
|
||||
Index.getValueType().getVectorNumElements());
|
||||
Index.getSimpleValueType().getVectorNumElements());
|
||||
SDValue MaskInReg = DAG.getNode(ISD::BITCAST, dl, MaskVT, Mask);
|
||||
SDVTList VTs = DAG.getVTList(MaskVT, MVT::Other);
|
||||
SDValue Ops[] = {Base, Scale, Index, Disp, Segment, MaskInReg, Src, Chain};
|
||||
|
Loading…
Reference in New Issue
Block a user