[llvm] selecting v_sat_pk instruction, version 2 (PR #123297)
Pierre van Houtryve via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 00:11:28 PST 2025
================
@@ -1974,6 +1983,12 @@ bool SITargetLowering::isTypeDesirableForOp(unsigned Op, EVT VT) const {
// create setcc with i1 operands. We don't have instructions for i1 setcc.
if (VT == MVT::i1 && Op == ISD::SETCC)
return false;
+
+ // Avoiding legality check for reg type of v2i8
+ // (do not need to addRegisterClass for v2i8)
+ // VT is result type, ensure the result type is v2i8
----------------
Pierre-vh wrote:
Can shorten into something like "v2i8 is illegal and only allowed in specific cases" ?
https://github.com/llvm/llvm-project/pull/123297
More information about the llvm-commits
mailing list