[llvm] [AArch64][GlobalISel] Lower G_BUILD_VECTOR to G_INSERT_VECTOR_ELT (PR #105686)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 28 23:14:46 PDT 2024
================
@@ -290,6 +290,13 @@ def combine_mul_cmlt : GICombineRule<
(apply [{ applyCombineMulCMLT(*${root}, MRI, B, ${matchinfo}); }])
>;
+def lower_build_insert_vec_elt : GICombineRule<
----------------
davemgreen wrote:
As far as I understand AArch64 has the AArch64PostLegalizerLowering pass, which is still a combiner and performs the combines in `def AArch64PostLegalizerLowering`. See https://reviews.llvm.org/D89820.
It could be renamed to build_vector_to_insert_vec_elt and added to the end of build_vector_lowering.
https://github.com/llvm/llvm-project/pull/105686
More information about the llvm-commits
mailing list