[llvm] [AMDGPU] Remove dead code in VOP1 tablegen (NFC) (PR #151932)
Chris Jackson via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 4 02:49:04 PDT 2025
https://github.com/chrisjbris created https://github.com/llvm/llvm-project/pull/151932
Remove dead class in VOP1Instructions.td.
>From 6884f33c2807ba7d4f4383fb817e8b892f4aa54f Mon Sep 17 00:00:00 2001
From: Chris Jackson <chris.jackson at amd.com>
Date: Mon, 4 Aug 2025 04:41:31 -0500
Subject: [PATCH] [AMDGPU] Remove dead code in VOP1 tablegen (NFC)
---
llvm/lib/Target/AMDGPU/VOP1Instructions.td | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/llvm/lib/Target/AMDGPU/VOP1Instructions.td b/llvm/lib/Target/AMDGPU/VOP1Instructions.td
index f621f8581f778..b12820782b5e6 100644
--- a/llvm/lib/Target/AMDGPU/VOP1Instructions.td
+++ b/llvm/lib/Target/AMDGPU/VOP1Instructions.td
@@ -107,18 +107,6 @@ class VOP1_DPP_Pseudo <string OpName, VOPProfile P, list<dag> pattern=[]> :
VOP_DPP_Pseudo <OpName, P, pattern> {
}
-class getVOP1Pat <SDPatternOperator node, VOPProfile P> : LetDummies {
- list<dag> ret =
- !if(P.HasModifiers,
- [(set P.DstVT:$vdst, (node (P.Src0VT (VOP3Mods P.Src0VT:$src0, i32:$src0_modifiers))))],
- !if(P.HasOMod,
- [(set P.DstVT:$vdst, (node (P.Src0VT (VOP3OMods P.Src0VT:$src0,
- i1:$clamp, i32:$omod))))],
- [(set P.DstVT:$vdst, (node (P.Src0VT P.Src0RC32:$src0)))]
- )
- );
-}
-
multiclass VOP1Inst <string opName, VOPProfile P,
SDPatternOperator node = null_frag, int VOPDOp = -1> {
// We only want to set this on the basic, non-SDWA or DPP forms.
More information about the llvm-commits
mailing list