[llvm] [AArch64] Replace expensive move from wzr by two moves via floating point immediate (PR #146538)

Julian Nagele via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 14 08:39:45 PDT 2025


================
@@ -7356,16 +7356,10 @@ def : Pat<(v4f16 (vector_insert (v4f16 V64:$Rn),
               (i64 0)),
             dsub)>;
 
-def : Pat<(vector_insert (v8f16 V128:$Rn), (f16 fpimm0), (i64 VectorIndexH:$imm)),
-          (INSvi16gpr V128:$Rn, VectorIndexH:$imm, WZR)>;
 def : Pat<(vector_insert (v4f16 V64:$Rn), (f16 fpimm0), (i64 VectorIndexH:$imm)),
----------------
juliannagele wrote:

done

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


More information about the llvm-commits mailing list