Skip to content

Commit 0418367

Browse files
committed
[AMDGPU] Use subtarget feature for v_lshl_add_u64 pattern. NFC.
Following on from llvm#133723, use the new subtarget feature for the selection pattern as well as for the instruction definition.
1 parent 9eb0020 commit 0418367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/VOP3Instructions.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ def : GCNPat<
806806
(DivergentBinFrag<mul> i32:$src0, IsPow2Plus1:$src1),
807807
(V_LSHL_ADD_U32_e64 i32:$src0, (i32 (Log2_32 imm:$src1)), i32:$src0)>;
808808

809-
let SubtargetPredicate = isGFX940Plus in
809+
let SubtargetPredicate = HasLshlAddU64Inst in
810810
def : GCNPat<
811811
(ThreeOpFrag<shl_0_to_4, add> i64:$src0, i32:$src1, i64:$src2),
812812
(V_LSHL_ADD_U64_e64 VSrc_b64:$src0, VSrc_b32:$src1, VSrc_b64:$src2)

0 commit comments

Comments
 (0)