[llvm] 7f1633c - [AMDGPU][True16] vop1 pk instructions profile update (#109228)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 20 12:01:28 PDT 2024


Author: Brox Chen
Date: 2024-09-20T15:01:25-04:00
New Revision: 7f1633c521fbb19ec0d1e1cb47662a5003b51c23

URL: https://github.com/llvm/llvm-project/commit/7f1633c521fbb19ec0d1e1cb47662a5003b51c23
DIFF: https://github.com/llvm/llvm-project/commit/7f1633c521fbb19ec0d1e1cb47662a5003b51c23.diff

LOG: [AMDGPU][True16] vop1 pk instructions profile update (#109228)

Remove dependency on VOPProfileI2F. This is to get ready for the
upcoming VOP3 true16 profile update. No test file changed.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/VOP1Instructions.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/VOP1Instructions.td b/llvm/lib/Target/AMDGPU/VOP1Instructions.td
index ccbe3c502ade13..33f2f9f1f5c5b9 100644
--- a/llvm/lib/Target/AMDGPU/VOP1Instructions.td
+++ b/llvm/lib/Target/AMDGPU/VOP1Instructions.td
@@ -629,9 +629,15 @@ let SubtargetPredicate = isGFX9Only in {
 
 
 // Similar to VOPProfile_Base_CVT_F32_F8, but for VOP3 instructions.
-def VOPProfile_Base_CVT_PK_F32_F8_OpSel : VOPProfileI2F <v2f32, i32> {
+def VOPProfile_Base_CVT_PK_F32_F8_OpSel : VOPProfile<[v2f32, i32, untyped, untyped]> {
   let HasOpSel = 1;
+  let HasClamp = 0;
+  let HasOMod = 0;
+  let HasExtDPP = 0;
   let HasExtVOP3DPP = 0;
+  let AsmVOP3Base = getAsmVOP3Base<NumSrcArgs, HasDst, HasClamp,
+   HasOpSel, HasOMod, IsVOP3P, 0 /*HasModifiers*/, 0/*Src0HasMods*/, 0/*Src1HasMods*/,
+   0/*Src2HasMods*/, DstVT>.ret;
 }
 
 class VOPProfile_Base_CVT_F_F8_ByteSel<ValueType DstVT> : VOPProfile<[DstVT, i32, untyped, untyped]> {
@@ -678,7 +684,7 @@ class Cvt_PK_F32_F8_Pat_OpSel<SDPatternOperator node, int index,
     VOP1_Pseudo inst_e32, VOP3_Pseudo inst_e64> : GCNPat<
     (v2f32 (node i32:$src, index)),
     !if (index,
-         (inst_e64 SRCMODS.OP_SEL_0, $src, 0, 0, SRCMODS.NONE),
+         (inst_e64 SRCMODS.OP_SEL_0, $src, 0),
          (inst_e32 $src))
 >;
 


        


More information about the llvm-commits mailing list