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

David Green via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 10 08:57:35 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)),
----------------
davemgreen wrote:

What about 64bit vectors too?

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


More information about the llvm-commits mailing list