[llvm] [AMDGPU] Insert exec-forced V_NOP after V_PERM_PK16 (gfx1250 hazard) (PR #214406)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 24 01:21:38 PDT 2026
================
@@ -1199,6 +1199,60 @@ class SIInstrInfo final : public AMDGPUGenInstrInfo {
Opc == AMDGPU::GLOBAL_WBINV;
}
+ static bool isF16PseudoScalarTrans(unsigned Opcode) {
+ return Opcode == AMDGPU::V_S_EXP_F16_e64 ||
+ Opcode == AMDGPU::V_S_LOG_F16_e64 ||
+ Opcode == AMDGPU::V_S_RCP_F16_e64 ||
+ Opcode == AMDGPU::V_S_RSQ_F16_e64 ||
+ Opcode == AMDGPU::V_S_SQRT_F16_e64;
+ }
+
+ static bool isPseudoScalarTrans(unsigned Opcode) {
+ return isF16PseudoScalarTrans(Opcode) ||
+ Opcode == AMDGPU::V_S_EXP_F32_e64 ||
+ Opcode == AMDGPU::V_S_LOG_F32_e64 ||
+ Opcode == AMDGPU::V_S_RCP_F32_e64 ||
+ Opcode == AMDGPU::V_S_RSQ_F32_e64 ||
+ Opcode == AMDGPU::V_S_SQRT_F32_e64;
+ }
+
+ static bool isF64Trans(unsigned Opcode) {
+ return Opcode == AMDGPU::V_RCP_F64_e32 || Opcode == AMDGPU::V_RCP_F64_e64 ||
----------------
jayfoad wrote:
Do we need to match alternatives like V_RCP_F64_dpp and V_RCP_F64_dpp8 here?
https://github.com/llvm/llvm-project/pull/214406
More information about the llvm-commits
mailing list