[PATCH] D151358: [LegalizeTypes] Improve expansion of wide SMIN/SMAX/UMIN/UMAX
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 24 11:46:30 PDT 2023
arsenm added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:2902
if (DAG.ComputeNumSignBits(LHS) > NumHalfBits &&
DAG.ComputeNumSignBits(RHS) > NumHalfBits) {
+ SDValue LHSL, LHSH, RHSL, RHSH;
----------------
Should do the RHS check first
================
Comment at: llvm/test/CodeGen/AMDGPU/min.ll:568
-; EG: MIN_UINT
-; EG: MIN_UINT
+; EG: SETE_INT
+; EG: SETGT_UINT
----------------
I'm guessing you need to check if the wide setcc is legal/good
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151358/new/
https://reviews.llvm.org/D151358
More information about the llvm-commits
mailing list