Skip to content

Commit 55eea6e

Browse files
committed
[AMDGPU][NFC] More precise predicates on GFX9 f16 insts
Removes redundant Has16BitInsts and allows for future use of OtherPredicates on V_DIV_FIXUP_F16_gfx9 and V_FMA_F16_gfx9 Reviewed By: foad Differential Revision: https://reviews.llvm.org/D142990
1 parent 9b30f6b commit 55eea6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/VOP3Instructions.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,11 @@ let FPDPRounding = 1 in {
308308
defm V_FMA_F16 : VOP3Inst <"v_fma_f16", VOP3_Profile<VOP_F16_F16_F16_F16>, any_fma>;
309309
} // End Predicates = [Has16BitInsts, isGFX8Only]
310310

311-
let renamedInGFX9 = 1, Predicates = [Has16BitInsts, isGFX9Plus] in {
311+
let renamedInGFX9 = 1, SubtargetPredicate = isGFX9Plus in {
312312
defm V_DIV_FIXUP_F16_gfx9 : VOP3Inst <"v_div_fixup_f16_gfx9",
313313
VOP3_Profile<VOP_F16_F16_F16_F16, VOP3_OPSEL>, AMDGPUdiv_fixup>;
314314
defm V_FMA_F16_gfx9 : VOP3Inst <"v_fma_f16_gfx9", VOP3_Profile<VOP_F16_F16_F16_F16, VOP3_OPSEL>, any_fma>;
315-
} // End renamedInGFX9 = 1, Predicates = [Has16BitInsts, isGFX9Plus]
315+
} // End renamedInGFX9 = 1, SubtargetPredicate = isGFX9Plus
316316
} // End FPDPRounding = 1
317317

318318
let SubtargetPredicate = Has16BitInsts, isCommutable = 1 in {

0 commit comments

Comments
 (0)