From ddc1c27d1c093f0457313f933bf444a51a548ee9 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Tue, 29 Jul 2025 12:12:58 -0700 Subject: [PATCH] [AMDGPU] Organize VOP3 profiles for single HasExt64BitDPP. NFC. This shall simplify further delta as more profiles will be added inside these braces. --- llvm/lib/Target/AMDGPU/VOP3Instructions.td | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/llvm/lib/Target/AMDGPU/VOP3Instructions.td b/llvm/lib/Target/AMDGPU/VOP3Instructions.td index b6f95686704be..88ec0aa0d840b 100644 --- a/llvm/lib/Target/AMDGPU/VOP3Instructions.td +++ b/llvm/lib/Target/AMDGPU/VOP3Instructions.td @@ -32,9 +32,10 @@ class VOP3b_Profile : VOPProfile<[vt, vt, vt, vt]> { let HasExtDPP = 0; } -let HasExt64BitDPP = 1 in { -def VOP3b_F32_I1_F32_F32_F32 : VOP3b_Profile; -def VOP3b_F64_I1_F64_F64_F64 : VOP3b_Profile; +def DIV_FIXUP_F32_PROF : VOP3_Profile { + let HasExtVOP3DPP = 0; + let HasExtDPP = 0; +} def VOP3b_I64_I1_I32_I32_I64 : VOPProfile<[i64, i32, i32, i64]> { let HasClamp = 1; @@ -44,6 +45,10 @@ def VOP3b_I64_I1_I32_I32_I64 : VOPProfile<[i64, i32, i32, i64]> { let Asm64 = "$vdst, $sdst, $src0, $src1, $src2$clamp"; } +let HasExt64BitDPP = 1 in { +def VOP3b_F32_I1_F32_F32_F32 : VOP3b_Profile; +def VOP3b_F64_I1_F64_F64_F64 : VOP3b_Profile; + class V_MUL_PROF : VOP3_Profile

{ let HasExtVOP3DPP = 0; let HasExtDPP = 0; @@ -52,11 +57,6 @@ class V_MUL_PROF : VOP3_Profile

{ def V_LSHL_ADD_U64_PROF : VOP3_Profile; def VOP_F64_F64_F64_F64_DPP_PROF : VOP3_Profile; - -def DIV_FIXUP_F32_PROF : VOP3_Profile { - let HasExtVOP3DPP = 0; - let HasExtDPP = 0; -} } // End HasExt64BitDPP = 1; //===----------------------------------------------------------------------===//