Skip to content

Commit 72bc291

Browse files
committed
[NFC] Move this set of STRICT_* cases to be next to the non-strict cases.
Requested by Cameron McInally in D69275.
1 parent 29dc0b1 commit 72bc291

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,16 @@ void SelectionDAGLegalize::LegalizeOp(SDNode *Node) {
10131013
Action = TLI.getOperationAction(Node->getOpcode(),
10141014
Node->getOperand(0).getValueType());
10151015
break;
1016+
case ISD::STRICT_LRINT:
1017+
case ISD::STRICT_LLRINT:
1018+
case ISD::STRICT_LROUND:
1019+
case ISD::STRICT_LLROUND:
1020+
// These pseudo-ops are the same as the other STRICT_ ops except
1021+
// they are registered with setOperationAction() using the input type
1022+
// instead of the output type.
1023+
Action = TLI.getStrictFPOperationAction(Node->getOpcode(),
1024+
Node->getOperand(1).getValueType());
1025+
break;
10161026
case ISD::SIGN_EXTEND_INREG: {
10171027
EVT InnerType = cast<VTSDNode>(Node->getOperand(1))->getVT();
10181028
Action = TLI.getOperationAction(Node->getOpcode(), InnerType);
@@ -1105,16 +1115,6 @@ void SelectionDAGLegalize::LegalizeOp(SDNode *Node) {
11051115
return;
11061116
}
11071117
break;
1108-
case ISD::STRICT_LRINT:
1109-
case ISD::STRICT_LLRINT:
1110-
case ISD::STRICT_LROUND:
1111-
case ISD::STRICT_LLROUND:
1112-
// These pseudo-ops are the same as the other STRICT_ ops except
1113-
// they are registered with setOperationAction() using the input type
1114-
// instead of the output type.
1115-
Action = TLI.getStrictFPOperationAction(Node->getOpcode(),
1116-
Node->getOperand(1).getValueType());
1117-
break;
11181118
case ISD::SADDSAT:
11191119
case ISD::UADDSAT:
11201120
case ISD::SSUBSAT:

0 commit comments

Comments
 (0)