[llvm] [AMDGPU] Add `isAsCheapAsAMove` for `v_pk_mov_b32` (PR #127632)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 18 05:53:16 PST 2025
https://github.com/shiltian created https://github.com/llvm/llvm-project/pull/127632
None
>From 1e3b907c14fad890814e454ab152b23b83d35d7d Mon Sep 17 00:00:00 2001
From: Shilei Tian <i at tianshilei.me>
Date: Tue, 18 Feb 2025 08:51:56 -0500
Subject: [PATCH] [AMDGPU] Add `isAsCheapAsAMove` for `v_pk_mov_b32`
---
llvm/lib/Target/AMDGPU/VOP3PInstructions.td | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Target/AMDGPU/VOP3PInstructions.td b/llvm/lib/Target/AMDGPU/VOP3PInstructions.td
index 21898da1912f5..d5c6e8af109f4 100644
--- a/llvm/lib/Target/AMDGPU/VOP3PInstructions.td
+++ b/llvm/lib/Target/AMDGPU/VOP3PInstructions.td
@@ -1151,7 +1151,7 @@ let isCommutable = 1, isReMaterializable = 1 in {
defm V_PK_ADD_F32 : VOP3PInst<"v_pk_add_f32", VOP3P_Profile<VOP_V2F32_V2F32_V2F32, VOP3_PACKED>, any_fadd>;
} // End SubtargetPredicate = HasPackedFP32Ops
- let SubtargetPredicate = HasPkMovB32 in
+ let SubtargetPredicate = HasPkMovB32, isAsCheapAsAMove = 1 in
defm V_PK_MOV_B32 : VOP3PInst<"v_pk_mov_b32", VOP3P_Profile<VOP_V2I32_V2I32_V2I32, VOP3_PACKED>>;
} // End isCommutable = 1, isReMaterializable = 1
More information about the llvm-commits
mailing list