Skip to content

Commit b72a682

Browse files
committed
update
1 parent a1b2ecd commit b72a682

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

llvm/include/llvm/Target/GlobalISel/Combine.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,8 +1562,8 @@ def combine_shuffle_concat : GICombineRule<
15621562

15631563
// Combines shuffles of vector into extract_subvector
15641564
def combine_shuffle_vector : GICombineRule<
1565-
(defs root:$root, int64_matchinfo:$matchinfo),
1566-
(match (G_SHUFFLE_VECTOR $root, $src1, $src2, $mask):$root,
1565+
(defs root:$root),
1566+
(match (G_SHUFFLE_VECTOR $dst, $src1, $src2, $mask):$root,
15671567
[{ return Helper.matchCombineShuffle(*${root}); }]),
15681568
(apply [{ Helper.applyCombineShuffle(*${root}); }])>;
15691569

llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,12 +429,11 @@ void CombinerHelper::applyCombineShuffle(MachineInstr &MI) const {
429429
auto SrcVec2 = Shuffle.getSrc2Reg();
430430
auto EltTy = MRI.getType(SrcVec1).getElementType();
431431
auto Width = MRI.getType(SrcVec1).getNumElements();
432-
auto ExtractWidth = Shuffle.getMask().size();
433432

434433
auto Unmerge1 = Builder.buildUnmerge(EltTy, SrcVec1);
435434
auto Unmerge2 = Builder.buildUnmerge(EltTy, SrcVec2);
436435

437-
llvm::SmallVector<Register> Extracts;
436+
SmallVector<Register> Extracts;
438437
// Select only applicable elements from unmerged values.
439438
for (auto Val : Shuffle.getMask()) {
440439
if (Val == -1) {

0 commit comments

Comments
 (0)