[llvm] [AArch64][GlobalISel] Ensure we have a insert-subreg v4i32 GPR pattern (PR #142724)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 4 10:42:32 PDT 2025
================
@@ -7269,6 +7269,13 @@ def : Pat<(v4i16 (vec_ins_or_scal_vec GPR32:$Rn)),
(SUBREG_TO_REG (i32 0),
(f32 (COPY_TO_REGCLASS GPR32:$Rn, FPR32)), ssub)>;
+def : Pat<(v2i32 (vec_ins_or_scal_vec GPR32:$Rn)),
----------------
davemgreen wrote:
I was surprised not to find where they were when I was looking, I thought it might be implicit as it only generates an IMPLICIT_DEF and a INSERT_SUBREG. But it turns out that that patterns below for FPR are the ones used for SDAG and it is just less picky about the difference between GPR and FPR.
I've removed the old patterns, which seem redundant now with the new ones using GPR.
https://github.com/llvm/llvm-project/pull/142724
More information about the llvm-commits
mailing list