]> granicus.if.org Git - llvm/commit
[GISel][CombinerHelper] Add concat_vectors(build_vector, build_vector) => build_vector
authorQuentin Colombet <quentin.colombet@gmail.com>
Thu, 17 Oct 2019 00:34:32 +0000 (00:34 +0000)
committerQuentin Colombet <quentin.colombet@gmail.com>
Thu, 17 Oct 2019 00:34:32 +0000 (00:34 +0000)
commit17cdb7fdd53811bbaa5581cf5362ccc0ba0beca6
treec9e654e6e7176d28dbaea6463ddde5492c01292f
parent8e00d5acbc9caafe1c514437869c7e8567ab5ed7
[GISel][CombinerHelper] Add concat_vectors(build_vector, build_vector) => build_vector

Teach the combiner helper how to flatten concat_vectors of build_vectors
into a build_vector.

Add this combine as part of AArch64 pre-legalizer combiner.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375066 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/CombinerHelper.h
lib/CodeGen/GlobalISel/CombinerHelper.cpp
lib/Target/AArch64/AArch64PreLegalizerCombiner.cpp
test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-concat-vectors.mir [new file with mode: 0644]