[llvm] [AMDGPU] selecting v_sat_pk instruction, version 2 (PR #123297)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 00:46:41 PST 2025
================
@@ -865,6 +865,19 @@ SITargetLowering::SITargetLowering(const TargetMachine &TM,
setOperationAction({ISD::FMAXIMUM, ISD::FMINIMUM}, MVT::v2f16, Legal);
}
+ // special case for v_sat_pk
+ if (AMDGPU::isGFX9(STI) || AMDGPU::isGFX11(STI) || AMDGPU::isGFX12(STI)) {
----------------
arsenm wrote:
Do not do generation checks, and especially don't do them directly here. This should be a subtarget feature (especially since it was removed in gfx10 and re-added based on this logic?)
https://github.com/llvm/llvm-project/pull/123297
More information about the llvm-commits
mailing list