Skip to content

Commit bfe150c

Browse files
authored
[AMDGPU][True16][CodeGen] update zext pattern with reg_sequence (#154952)
update zext pattern with reg_sequence. This is a follow up from #154211 (comment)
1 parent cb89ffd commit bfe150c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/AMDGPU/SIInstructions.td

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3106,9 +3106,7 @@ def : GCNPat<
31063106

31073107
def : GCNPat<
31083108
(i64 (DivergentUnaryFrag<zext> i16:$src)),
3109-
(REG_SEQUENCE VReg_64,
3110-
(INSERT_SUBREG (i32 (V_MOV_B32_e32 (i32 0))), VGPR_16:$src, lo16), sub0,
3111-
(S_MOV_B32 (i32 0)), sub1)
3109+
(REG_SEQUENCE VReg_64, $src, lo16, (V_MOV_B16_t16_e64 0, (i16 0), 0), hi16, (V_MOV_B32_e32 (i32 0)), sub1)
31123110
>;
31133111

31143112
def : GCNPat<

0 commit comments

Comments
 (0)