diff options
| author | Kevin P. Neal <kevin.neal@sas.com> | 2019-10-30 13:29:07 -0400 |
|---|---|---|
| committer | Kevin P. Neal <kevin.neal@sas.com> | 2019-10-30 13:32:27 -0400 |
| commit | 72bc291f94597c7bc4fe241ed986b2bfb677e07e (patch) | |
| tree | 6f5c4dcbf360ea6b58c75969d820b8a1685efc6f /llvm/lib | |
| parent | 29dc0b17de6b04afa6110a040053a19b02ca1a87 (diff) | |
| download | bcm5719-llvm-72bc291f94597c7bc4fe241ed986b2bfb677e07e.tar.gz bcm5719-llvm-72bc291f94597c7bc4fe241ed986b2bfb677e07e.zip | |
[NFC] Move this set of STRICT_* cases to be next to the non-strict cases.
Requested by Cameron McInally in D69275.
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index f9fdf525240..6d96a07d9d6 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1013,6 +1013,16 @@ void SelectionDAGLegalize::LegalizeOp(SDNode *Node) { Action = TLI.getOperationAction(Node->getOpcode(), Node->getOperand(0).getValueType()); break; + case ISD::STRICT_LRINT: + case ISD::STRICT_LLRINT: + case ISD::STRICT_LROUND: + case ISD::STRICT_LLROUND: + // These pseudo-ops are the same as the other STRICT_ ops except + // they are registered with setOperationAction() using the input type + // instead of the output type. + Action = TLI.getStrictFPOperationAction(Node->getOpcode(), + Node->getOperand(1).getValueType()); + break; case ISD::SIGN_EXTEND_INREG: { EVT InnerType = cast<VTSDNode>(Node->getOperand(1))->getVT(); Action = TLI.getOperationAction(Node->getOpcode(), InnerType); @@ -1105,16 +1115,6 @@ void SelectionDAGLegalize::LegalizeOp(SDNode *Node) { return; } break; - case ISD::STRICT_LRINT: - case ISD::STRICT_LLRINT: - case ISD::STRICT_LROUND: - case ISD::STRICT_LLROUND: - // These pseudo-ops are the same as the other STRICT_ ops except - // they are registered with setOperationAction() using the input type - // instead of the output type. - Action = TLI.getStrictFPOperationAction(Node->getOpcode(), - Node->getOperand(1).getValueType()); - break; case ISD::SADDSAT: case ISD::UADDSAT: case ISD::SSUBSAT: |

