[llvm] [AMDGPU] selecting v_sat_pk instruction, version 2 (PR #123297)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 17:33:03 PST 2025


================
@@ -1975,6 +1982,10 @@ bool SITargetLowering::isTypeDesirableForOp(unsigned Op, EVT VT) const {
   if (VT == MVT::i1 && Op == ISD::SETCC)
     return false;
 
+  // v2i8 is illegal and only allowed in specific cases
+  if (VT == MVT::v2i8 && Op == ISD::TRUNCATE_SSAT_U)
----------------
Shoreshen wrote:

Hi @arsenm , could you be more specific??

Do you mean that we should remove the check here, and try to handle different dst type of truncate_ssat_u latter in ReplaceNodeResults??

https://github.com/llvm/llvm-project/pull/123297


More information about the llvm-commits mailing list