[GISel][CombinerHelper] Add a combine turning shuffle_vector into concat_vectors
authorQuentin Colombet <quentin.colombet@gmail.com>
Mon, 21 Oct 2019 20:39:58 +0000 (20:39 +0000)
committerQuentin Colombet <quentin.colombet@gmail.com>
Mon, 21 Oct 2019 20:39:58 +0000 (20:39 +0000)
commit6f0ae81512c17ae8fb1033dc4e0b3d4c2424742c
treeb4330d4dba1907cdcb217b062c42c6def80c9425
parent38038f116f7b948a700e0edc4d3687c7b7fda926
[GISel][CombinerHelper] Add a combine turning shuffle_vector into concat_vectors

Teach the CombinerHelper how to turn shuffle_vectors, that
concatenate vectors, into concat_vectors and add this combine
to the AArch64 pre-legalizer combiner.

Differential Revision: https://reviews.llvm.org/D69149

llvm-svn: 375452
llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
llvm/lib/Target/AArch64/AArch64PreLegalizerCombiner.cpp
llvm/test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-shuffle-vector.mir [new file with mode: 0644]