mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
simplify some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -668,7 +668,7 @@ SDOperand DAGTypeLegalizer::PromoteResult_SRL(SDNode *N) {
|
|||||||
// The input value must be properly zero extended.
|
// The input value must be properly zero extended.
|
||||||
MVT::ValueType VT = N->getValueType(0);
|
MVT::ValueType VT = N->getValueType(0);
|
||||||
MVT::ValueType NVT = TLI.getTypeToTransformTo(VT);
|
MVT::ValueType NVT = TLI.getTypeToTransformTo(VT);
|
||||||
SDOperand Res = DAG.getZeroExtendInReg(GetPromotedOp(N->getOperand(0)), VT);
|
SDOperand Res = GetPromotedZExtOp(N->getOperand(0));
|
||||||
return DAG.getNode(ISD::SRL, NVT, Res, N->getOperand(1));
|
return DAG.getNode(ISD::SRL, NVT, Res, N->getOperand(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user