forked from OSchip/llvm-project
[NFC] [Legalize] Fix spaces and style.
This commit is contained in:
parent
a62d38a90d
commit
fdb979cfbb
|
@ -1815,7 +1815,7 @@ SDValue SelectionDAGLegalize::EmitStackConvert(SDValue SrcOp, EVT SlotVT,
|
|||
// later than DestVT.
|
||||
SDValue Store;
|
||||
|
||||
if (SrcSize > SlotSize)
|
||||
if (SrcSize > SlotSize)
|
||||
Store = DAG.getTruncStore(Chain, dl, SrcOp, FIPtr, PtrInfo,
|
||||
SlotVT, SrcAlign);
|
||||
else {
|
||||
|
@ -3017,16 +3017,14 @@ bool SelectionDAGLegalize::ExpandNode(SDNode *Node) {
|
|||
break;
|
||||
// We fall back to use stack operation when the FP_ROUND operation
|
||||
// isn't available.
|
||||
Tmp1 = EmitStackConvert(Node->getOperand(1),
|
||||
Node->getValueType(0),
|
||||
Tmp1 = EmitStackConvert(Node->getOperand(1), Node->getValueType(0),
|
||||
Node->getValueType(0), dl, Node->getOperand(0));
|
||||
ReplaceNode(Node, Tmp1.getNode());
|
||||
LLVM_DEBUG(dbgs() << "Successfully expanded STRICT_FP_ROUND node\n");
|
||||
return true;
|
||||
case ISD::FP_ROUND:
|
||||
case ISD::BITCAST:
|
||||
Tmp1 = EmitStackConvert(Node->getOperand(0),
|
||||
Node->getValueType(0),
|
||||
Tmp1 = EmitStackConvert(Node->getOperand(0), Node->getValueType(0),
|
||||
Node->getValueType(0), dl);
|
||||
Results.push_back(Tmp1);
|
||||
break;
|
||||
|
|
|
@ -575,8 +575,8 @@ SDValue DAGTypeLegalizer::PromoteIntRes_FP_TO_XINT(SDNode *N) {
|
|||
|
||||
SDValue Res;
|
||||
if (N->isStrictFPOpcode()) {
|
||||
Res = DAG.getNode(NewOpc, dl, { NVT, MVT::Other },
|
||||
{ N->getOperand(0), N->getOperand(1) });
|
||||
Res = DAG.getNode(NewOpc, dl, {NVT, MVT::Other},
|
||||
{N->getOperand(0), N->getOperand(1)});
|
||||
// Legalize the chain result - switch anything that used the old chain to
|
||||
// use the new one.
|
||||
ReplaceValueWith(SDValue(N, 1), Res.getValue(1));
|
||||
|
@ -1260,7 +1260,7 @@ SDValue DAGTypeLegalizer::PromoteIntRes_UADDSUBO(SDNode *N, unsigned ResNo) {
|
|||
}
|
||||
|
||||
// Handle promotion for the ADDE/SUBE/ADDCARRY/SUBCARRY nodes. Notice that
|
||||
// the third operand of ADDE/SUBE nodes is carry flag, which differs from
|
||||
// the third operand of ADDE/SUBE nodes is carry flag, which differs from
|
||||
// the ADDCARRY/SUBCARRY nodes in that the third operand is carry Boolean.
|
||||
SDValue DAGTypeLegalizer::PromoteIntRes_ADDSUBCARRY(SDNode *N, unsigned ResNo) {
|
||||
if (ResNo == 1)
|
||||
|
@ -3096,7 +3096,7 @@ void DAGTypeLegalizer::ExpandIntRes_LOAD(LoadSDNode *N,
|
|||
ReplaceValueWith(SDValue(N, 1), Swap.getValue(2));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (ISD::isNormalLoad(N)) {
|
||||
ExpandRes_NormalLoad(N, Lo, Hi);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue