Skip to content

Commit 5bdce30

Browse files
authored
[AMDGPU][True16][CodeGen] remove v2i16 from srl pattern (#133458)
remove v2i16 from srl true16 pattern since 16bit right shift on v2i16 should not be applied with this pattern
1 parent 973bf4d commit 5bdce30

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/SIInstructions.td

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2426,9 +2426,8 @@ def : GCNPat <(i1 imm:$imm),
24262426
}
24272427

24282428
let True16Predicate = UseRealTrue16Insts in
2429-
foreach vt = [i32, v2i16] in
24302429
def : GCNPat <
2431-
(vt (DivergentBinFrag<srl> VGPR_32:$src, (i32 16))),
2430+
(i32 (DivergentBinFrag<srl> VGPR_32:$src, (i32 16))),
24322431
(REG_SEQUENCE VGPR_32, (i16 (EXTRACT_SUBREG $src, hi16)), lo16, (V_MOV_B16_t16_e64 0, (i16 0x0000), 0), hi16)
24332432
>;
24342433

0 commit comments

Comments
 (0)