[llvm] ee3b375 - [LegalizeDAG] Use getOperationAction instead of getStrictFPOperationAction for STRICT_LRINT/LROUND/LLRINT/LLROUND.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 26 12:05:46 PST 2019


Author: Craig Topper
Date: 2019-11-26T11:57:45-08:00
New Revision: ee3b375b4cb7f3d7739f009e56d7ff1b07e27353

URL: https://github.com/llvm/llvm-project/commit/ee3b375b4cb7f3d7739f009e56d7ff1b07e27353
DIFF: https://github.com/llvm/llvm-project/commit/ee3b375b4cb7f3d7739f009e56d7ff1b07e27353.diff

LOG: [LegalizeDAG] Use getOperationAction instead of getStrictFPOperationAction for STRICT_LRINT/LROUND/LLRINT/LLROUND.

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 17bb98bdddfb..f3316a0a303e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -1023,8 +1023,8 @@ void SelectionDAGLegalize::LegalizeOp(SDNode *Node) {
     // 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());
+    Action = TLI.getOperationAction(Node->getOpcode(),
+                                    Node->getOperand(1).getValueType());
     break;
   case ISD::SIGN_EXTEND_INREG: {
     EVT InnerType = cast<VTSDNode>(Node->getOperand(1))->getVT();


        


More information about the llvm-commits mailing list