[llvm] [AArch64][GlobalISel] Legalize Insert vector element (PR #81453)

David Green via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 8 07:03:44 PST 2024


================
@@ -7997,8 +7997,8 @@ class SIMDInsFromElement<string size, ValueType vectype,
          [(set V128:$dst,
                (vector_insert
                  (vectype V128:$Rd),
-                 (elttype (vector_extract (vectype V128:$Rn), idxtype:$idx2)),
-                 idxtype:$idx))]>;
+                 (elttype (vector_extract (vectype V128:$Rn), (i64 idxtype:$idx2))),
+                 (i64 idxtype:$idx)))]>;
----------------
davemgreen wrote:

Hi. As far as I understand it allows the GISel pattern importer to import the patterns. Without it they do not know the size. They shouldn't change much else I believe, just making the patterns a little stricter so the types are more obvious.

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


More information about the llvm-commits mailing list