Skip to content

Commit bfb6829

Browse files
authored
[AMDGPU] Organize VOP3 profiles for single HasExt64BitDPP. NFC. (#151212)
This shall simplify further delta as more profiles will be added inside these braces.
1 parent 5d4e1e0 commit bfb6829

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

llvm/lib/Target/AMDGPU/VOP3Instructions.td

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ class VOP3b_Profile<ValueType vt> : VOPProfile<[vt, vt, vt, vt]> {
3232
let HasExtDPP = 0;
3333
}
3434

35-
let HasExt64BitDPP = 1 in {
36-
def VOP3b_F32_I1_F32_F32_F32 : VOP3b_Profile<f32>;
37-
def VOP3b_F64_I1_F64_F64_F64 : VOP3b_Profile<f64>;
35+
def DIV_FIXUP_F32_PROF : VOP3_Profile<VOP_F32_F32_F32_F32> {
36+
let HasExtVOP3DPP = 0;
37+
let HasExtDPP = 0;
38+
}
3839

3940
def VOP3b_I64_I1_I32_I32_I64 : VOPProfile<[i64, i32, i32, i64]> {
4041
let HasClamp = 1;
@@ -44,6 +45,10 @@ def VOP3b_I64_I1_I32_I32_I64 : VOPProfile<[i64, i32, i32, i64]> {
4445
let Asm64 = "$vdst, $sdst, $src0, $src1, $src2$clamp";
4546
}
4647

48+
let HasExt64BitDPP = 1 in {
49+
def VOP3b_F32_I1_F32_F32_F32 : VOP3b_Profile<f32>;
50+
def VOP3b_F64_I1_F64_F64_F64 : VOP3b_Profile<f64>;
51+
4752
class V_MUL_PROF<VOPProfile P> : VOP3_Profile<P> {
4853
let HasExtVOP3DPP = 0;
4954
let HasExtDPP = 0;
@@ -52,11 +57,6 @@ class V_MUL_PROF<VOPProfile P> : VOP3_Profile<P> {
5257
def V_LSHL_ADD_U64_PROF : VOP3_Profile<VOP_I64_I64_I32_I64>;
5358

5459
def VOP_F64_F64_F64_F64_DPP_PROF : VOP3_Profile<VOP_F64_F64_F64_F64>;
55-
56-
def DIV_FIXUP_F32_PROF : VOP3_Profile<VOP_F32_F32_F32_F32> {
57-
let HasExtVOP3DPP = 0;
58-
let HasExtDPP = 0;
59-
}
6060
} // End HasExt64BitDPP = 1;
6161

6262
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)