[llvm] [AArch64][GlobalISel] Lower G_BUILD_VECTOR to G_INSERT_VECTOR_ELT (PR #105686)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 29 00:42:42 PDT 2024


================
@@ -290,6 +290,13 @@ def combine_mul_cmlt : GICombineRule<
   (apply [{ applyCombineMulCMLT(*${root}, MRI, B, ${matchinfo}); }])
 >;
 
+def lower_build_insert_vec_elt : GICombineRule<
----------------
arsenm wrote:

This doesn't seem good. Unrolling a build_vector into a sequence of vector inserts naturally belongs in LegalizerHelper 

https://github.com/llvm/llvm-project/pull/105686


More information about the llvm-commits mailing list