[llvm-branch-commits] [llvm] 92c89fe - Revert "[Legalizer] Check full condition for UMIN and UMAX just like the code…"

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 28 09:25:34 PDT 2024


Author: AtariDreams
Date: 2024-05-28T12:25:31-04:00
New Revision: 92c89fe87fbecafa208de688dff4bfcc760d4e35

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

LOG: Revert "[Legalizer] Check full condition for UMIN and UMAX just like the code…"

This reverts commit 70bf1396517be14a92bc69dcb0bf44179c937d93.

Added: 
    

Modified: 
    llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
index c04f7208c61f2..d8b0f52ecf9e3 100644
--- a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
@@ -3972,7 +3972,7 @@ LegalizerHelper::lower(MachineInstr &MI, unsigned TypeIdx, LLT LowerHintTy) {
     // target can override this with custom lowering and calling the
     // implementation functions.
     LLT Ty = MRI.getType(MI.getOperand(0).getReg());
-    if (LI.isLegalOrCustom({G_UMIN, Ty}) && LI.isLegalOrCustom({G_UMAX, Ty}))
+    if (LI.isLegalOrCustom({G_UMIN, Ty}))
       return lowerAddSubSatToMinMax(MI);
     return lowerAddSubSatToAddoSubo(MI);
   }


        


More information about the llvm-branch-commits mailing list