Skip to content

Commit 1e3b907

Browse files
committed
[AMDGPU] Add isAsCheapAsAMove for v_pk_mov_b32
1 parent 5fbb6d9 commit 1e3b907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/VOP3PInstructions.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ let isCommutable = 1, isReMaterializable = 1 in {
11511151
defm V_PK_ADD_F32 : VOP3PInst<"v_pk_add_f32", VOP3P_Profile<VOP_V2F32_V2F32_V2F32, VOP3_PACKED>, any_fadd>;
11521152
} // End SubtargetPredicate = HasPackedFP32Ops
11531153

1154-
let SubtargetPredicate = HasPkMovB32 in
1154+
let SubtargetPredicate = HasPkMovB32, isAsCheapAsAMove = 1 in
11551155
defm V_PK_MOV_B32 : VOP3PInst<"v_pk_mov_b32", VOP3P_Profile<VOP_V2I32_V2I32_V2I32, VOP3_PACKED>>;
11561156
} // End isCommutable = 1, isReMaterializable = 1
11571157

0 commit comments

Comments
 (0)