[llvm] [Legalizer] Check full condition for UMIN and UMAX just like the code below does for SMIN and SMAX (PR #87932)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 28 18:19:26 PDT 2024
================
@@ -3943,7 +3943,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}))
+ if (LI.isLegalOrCustom({G_UMIN, Ty}) && LI.isLegalOrCustom({G_UMAX, Ty}))
----------------
AtariDreams wrote:
I already did. Thanks!
https://github.com/llvm/llvm-project/pull/87932
More information about the llvm-commits
mailing list