mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-27 12:26:08 +00:00
ScalarizeVecRes_ShiftOp and ScalarizeVecRes_BinOp are the same,
eliminate the former. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74959 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -506,7 +506,6 @@ private:
|
|||||||
// Vector Result Scalarization: <1 x ty> -> ty.
|
// Vector Result Scalarization: <1 x ty> -> ty.
|
||||||
void ScalarizeVectorResult(SDNode *N, unsigned OpNo);
|
void ScalarizeVectorResult(SDNode *N, unsigned OpNo);
|
||||||
SDValue ScalarizeVecRes_BinOp(SDNode *N);
|
SDValue ScalarizeVecRes_BinOp(SDNode *N);
|
||||||
SDValue ScalarizeVecRes_ShiftOp(SDNode *N);
|
|
||||||
SDValue ScalarizeVecRes_UnaryOp(SDNode *N);
|
SDValue ScalarizeVecRes_UnaryOp(SDNode *N);
|
||||||
|
|
||||||
SDValue ScalarizeVecRes_BIT_CONVERT(SDNode *N);
|
SDValue ScalarizeVecRes_BIT_CONVERT(SDNode *N);
|
||||||
|
@@ -97,13 +97,10 @@ void DAGTypeLegalizer::ScalarizeVectorResult(SDNode *N, unsigned ResNo) {
|
|||||||
case ISD::UDIV:
|
case ISD::UDIV:
|
||||||
case ISD::UREM:
|
case ISD::UREM:
|
||||||
case ISD::XOR:
|
case ISD::XOR:
|
||||||
R = ScalarizeVecRes_BinOp(N);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case ISD::SHL:
|
case ISD::SHL:
|
||||||
case ISD::SRA:
|
case ISD::SRA:
|
||||||
case ISD::SRL:
|
case ISD::SRL:
|
||||||
R = ScalarizeVecRes_ShiftOp(N);
|
R = ScalarizeVecRes_BinOp(N);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,13 +116,6 @@ SDValue DAGTypeLegalizer::ScalarizeVecRes_BinOp(SDNode *N) {
|
|||||||
LHS.getValueType(), LHS, RHS);
|
LHS.getValueType(), LHS, RHS);
|
||||||
}
|
}
|
||||||
|
|
||||||
SDValue DAGTypeLegalizer::ScalarizeVecRes_ShiftOp(SDNode *N) {
|
|
||||||
SDValue LHS = GetScalarizedVector(N->getOperand(0));
|
|
||||||
SDValue ShiftAmt = GetScalarizedVector(N->getOperand(1));
|
|
||||||
return DAG.getNode(N->getOpcode(), N->getDebugLoc(),
|
|
||||||
LHS.getValueType(), LHS, ShiftAmt);
|
|
||||||
}
|
|
||||||
|
|
||||||
SDValue DAGTypeLegalizer::ScalarizeVecRes_BIT_CONVERT(SDNode *N) {
|
SDValue DAGTypeLegalizer::ScalarizeVecRes_BIT_CONVERT(SDNode *N) {
|
||||||
MVT NewVT = N->getValueType(0).getVectorElementType();
|
MVT NewVT = N->getValueType(0).getVectorElementType();
|
||||||
return DAG.getNode(ISD::BIT_CONVERT, N->getDebugLoc(),
|
return DAG.getNode(ISD::BIT_CONVERT, N->getDebugLoc(),
|
||||||
|
Reference in New Issue
Block a user