[AMDGPU][NFC] Clean up the VOP profile definition for v_swap_b32.
authorIvan Kosarev <ivan.kosarev@amd.com>
Mon, 6 Feb 2023 13:07:24 +0000 (13:07 +0000)
committerIvan Kosarev <ivan.kosarev@amd.com>
Mon, 6 Feb 2023 16:29:23 +0000 (16:29 +0000)
v_swap_b32 is a VOP1-only instruction, meaning it neither encodes src1
nor has 64-bit encodings.

Reviewed By: foad

Differential Revision: https://reviews.llvm.org/D143289

llvm/lib/Target/AMDGPU/VOP1Instructions.td

index bac7a1e..e6f9034 100644 (file)
@@ -528,13 +528,10 @@ def : GCNPat<
 >;
 }
 
-def VOP_SWAP_I32 : VOPProfile<[i32, i32, i32, untyped]> {
+def VOP_SWAP_I32 : VOPProfile<[i32, i32, untyped, untyped]> {
   let Outs32 = (outs VGPR_32:$vdst, VRegSrc_32:$vdst1);
   let Ins32 = (ins VRegSrc_32:$src0, VGPR_32:$src1);
-  let Outs64 = Outs32;
   let Asm32 = " $vdst, $src0";
-  let Asm64 = "";
-  let Ins64 = (ins);
 }
 
 let SubtargetPredicate = isGFX9Plus in {