[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 06:17:34 PDT 2024


================
@@ -290,6 +290,13 @@ def combine_mul_cmlt : GICombineRule<
   (apply [{ applyCombineMulCMLT(*${root}, MRI, B, ${matchinfo}); }])
 >;
 
+def lower_build_insert_vec_elt : GICombineRule<
+  (defs root:$root, register_matchinfo:$matchinfo),
+  (match (G_BUILD_VECTOR $dst, GIVariadic<>:$unused):$root,
+        [{ return matchLowerBuildToInsertVecElt(*${root}, MRI); }]),
----------------
davemgreen wrote:

I would add a couple of extra spaces to make the [{ inside the (

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


More information about the llvm-commits mailing list