Skip to content

Commit 7f1633c

Browse files
authored
[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.
1 parent cdd71d6 commit 7f1633c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

llvm/lib/Target/AMDGPU/VOP1Instructions.td

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,9 +629,15 @@ let SubtargetPredicate = isGFX9Only in {
629629

630630

631631
// Similar to VOPProfile_Base_CVT_F32_F8, but for VOP3 instructions.
632-
def VOPProfile_Base_CVT_PK_F32_F8_OpSel : VOPProfileI2F <v2f32, i32> {
632+
def VOPProfile_Base_CVT_PK_F32_F8_OpSel : VOPProfile<[v2f32, i32, untyped, untyped]> {
633633
let HasOpSel = 1;
634+
let HasClamp = 0;
635+
let HasOMod = 0;
636+
let HasExtDPP = 0;
634637
let HasExtVOP3DPP = 0;
638+
let AsmVOP3Base = getAsmVOP3Base<NumSrcArgs, HasDst, HasClamp,
639+
HasOpSel, HasOMod, IsVOP3P, 0 /*HasModifiers*/, 0/*Src0HasMods*/, 0/*Src1HasMods*/,
640+
0/*Src2HasMods*/, DstVT>.ret;
635641
}
636642

637643
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,
678684
VOP1_Pseudo inst_e32, VOP3_Pseudo inst_e64> : GCNPat<
679685
(v2f32 (node i32:$src, index)),
680686
!if (index,
681-
(inst_e64 SRCMODS.OP_SEL_0, $src, 0, 0, SRCMODS.NONE),
687+
(inst_e64 SRCMODS.OP_SEL_0, $src, 0),
682688
(inst_e32 $src))
683689
>;
684690

0 commit comments

Comments
 (0)