[llvm] d582958 - Revert "[Legalizer] Check full condition for UMIN and UMAX just like the code below does for SMIN and SMAX" (#93573)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 28 09:25:47 PDT 2024
Author: AtariDreams
Date: 2024-05-28T12:25:43-04:00
New Revision: d582958618cc5aeff58c512399bef7b263fedd59
URL: https://github.com/llvm/llvm-project/commit/d582958618cc5aeff58c512399bef7b263fedd59
DIFF: https://github.com/llvm/llvm-project/commit/d582958618cc5aeff58c512399bef7b263fedd59.diff
LOG: Revert "[Legalizer] Check full condition for UMIN and UMAX just like the code below does for SMIN and SMAX" (#93573)
Reverts llvm/llvm-project#87932
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-commits
mailing list