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); } _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits