[llvm] 5bdce30 - [AMDGPU][True16][CodeGen] remove v2i16 from srl pattern (#133458)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 28 15:48:11 PDT 2025
Author: Brox Chen
Date: 2025-03-28T18:48:08-04:00
New Revision: 5bdce305793f161cfa1bf69a65954089c99ccf0b
URL: https://github.com/llvm/llvm-project/commit/5bdce305793f161cfa1bf69a65954089c99ccf0b
DIFF: https://github.com/llvm/llvm-project/commit/5bdce305793f161cfa1bf69a65954089c99ccf0b.diff
LOG: [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
Added:
Modified:
llvm/lib/Target/AMDGPU/SIInstructions.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIInstructions.td b/llvm/lib/Target/AMDGPU/SIInstructions.td
index 95797e96aa77e..9051db0c01ed1 100644
--- a/llvm/lib/Target/AMDGPU/SIInstructions.td
+++ b/llvm/lib/Target/AMDGPU/SIInstructions.td
@@ -2426,9 +2426,8 @@ def : GCNPat <(i1 imm:$imm),
}
let True16Predicate = UseRealTrue16Insts in
-foreach vt = [i32, v2i16] in
def : GCNPat <
- (vt (DivergentBinFrag<srl> VGPR_32:$src, (i32 16))),
+ (i32 (DivergentBinFrag<srl> VGPR_32:$src, (i32 16))),
(REG_SEQUENCE VGPR_32, (i16 (EXTRACT_SUBREG $src, hi16)), lo16, (V_MOV_B16_t16_e64 0, (i16 0x0000), 0), hi16)
>;
More information about the llvm-commits
mailing list