[llvm] e6e23a2 - [LegalizeDAG] Add return to the strict node handling in PromoteLegalINT_TO_FP to prevent an invalid strict fp node from being created by falling into non-strict code path.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 11:40:10 PST 2019


Author: Craig Topper
Date: 2019-12-19T11:39:50-08:00
New Revision: e6e23a24beece5624068ff502fc74a466eedf038

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

LOG: [LegalizeDAG] Add return to the strict node handling in PromoteLegalINT_TO_FP to prevent an invalid strict fp node from being created by falling into non-strict code path.

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 c9547bf1906a..8ab372b60a98 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -2533,6 +2533,7 @@ void SelectionDAGLegalize::PromoteLegalINT_TO_FP(
                                  dl, NewInTy, LegalOp)});
     Results.push_back(Res);
     Results.push_back(Res.getValue(1));
+    return;
   }
 
   Results.push_back(


        


More information about the llvm-commits mailing list