[llvm] [RISCV] Add more intrinsics into canSplatOperand. (PR #83106)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 23:13:53 PST 2024
================
@@ -2009,6 +2009,22 @@ bool RISCVTargetLowering::canSplatOperand(Instruction *I, int Operand) const {
case Intrinsic::vp_fmul:
case Intrinsic::vp_icmp:
case Intrinsic::vp_fcmp:
+ case Intrinsic::smin:
+ case Intrinsic::vp_smin:
+ case Intrinsic::umin:
+ case Intrinsic::vp_umin:
+ case Intrinsic::smax:
+ case Intrinsic::vp_smax:
+ case Intrinsic::umax:
+ case Intrinsic::vp_umax:
+ case Intrinsic::sadd_sat:
+ case Intrinsic::vp_sadd_sat:
+ case Intrinsic::uadd_sat:
+ case Intrinsic::vp_uadd_sat:
+ case Intrinsic::ssub_sat:
----------------
topperc wrote:
ssub_sat/usub_sat isn't commutable and we only have one .vx form for those instructions.
https://github.com/llvm/llvm-project/pull/83106
More information about the llvm-commits
mailing list