Skip to content

Commit 27be0cf

Browse files
committed
move pattern
1 parent 5cfd5ea commit 27be0cf

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

llvm/lib/Target/AMDGPU/SIInstructions.td

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3548,14 +3548,7 @@ def : GCNPat <
35483548
(vecTy (DivergentBinFrag<build_vector> (Ty undef), (Ty VGPR_32:$src1))),
35493549
(vecTy (V_LSHLREV_B32_e64 (i32 16), VGPR_32:$src1))
35503550
>;
3551-
}
3552-
3553-
let True16Predicate = UseRealTrue16Insts in
3554-
def : GCNPat <
3555-
(vecTy (DivergentBinFrag<build_vector> (Ty undef), (Ty VGPR_16:$src1))),
3556-
(REG_SEQUENCE VGPR_32, (Ty (IMPLICIT_DEF)), lo16, (Ty VGPR_16:$src1), hi16)
3557-
>;
3558-
3551+
} // End True16Predicate = ...
35593552
} // End foreach Ty = ...
35603553
} // End AddedComplexity = 1
35613554

@@ -3615,6 +3608,10 @@ def : GCNPat <
36153608
(vecTy (DivergentBinFrag<build_vector> (Ty VGPR_16:$src0), (Ty undef))),
36163609
(REG_SEQUENCE VGPR_32, $src0, lo16, (Ty (IMPLICIT_DEF)), hi16)
36173610
>;
3611+
def : GCNPat <
3612+
(vecTy (DivergentBinFrag<build_vector> (Ty undef), (Ty VGPR_16:$src1))),
3613+
(REG_SEQUENCE VGPR_32, (Ty (IMPLICIT_DEF)), lo16, (Ty VGPR_16:$src1), hi16)
3614+
>;
36183615
}
36193616

36203617
// Take the lower 16 bits from V[0] and the upper 16 bits from V[1]

0 commit comments

Comments
 (0)