[all-commits] [llvm/llvm-project] 8d38c2: [SVE][CodeGen] Improve codegen for some FP insert_...

david-arm via All-commits all-commits at lists.llvm.org
Mon Nov 8 05:46:09 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d38c24fb6cc4c3d3a498435cc3c52430fd366a6
      https://github.com/llvm/llvm-project/commit/8d38c24fb6cc4c3d3a498435cc3c52430fd366a6
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2021-11-08 (Mon, 08 Nov 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/test/CodeGen/AArch64/sve-insert-vector.ll

  Log Message:
  -----------
  [SVE][CodeGen] Improve codegen for some FP insert_subvector cases

When inserting an unpacked FP subvector into a packed vector we
can simply cast the unpacked value into a packed value, since
both types are legal for SVE. We can then use this as the input
for the UZP instruction. This avoids us expanding the operation
by going through the stack.

Differential Revision: https://reviews.llvm.org/D113270




More information about the All-commits mailing list