[all-commits] [llvm/llvm-project] d71924: [AMDGPU] Improve v2i32/v2f32 insertelt patterns

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Thu Aug 5 16:14:07 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d71924fbfef2efd343388d189309bfb1e38e8021
      https://github.com/llvm/llvm-project/commit/d71924fbfef2efd343388d189309bfb1e38e8021
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2021-08-05 (Thu, 05 Aug 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInstructions.td
    M llvm/test/CodeGen/AMDGPU/insert_vector_elt.ll

  Log Message:
  -----------
  [AMDGPU] Improve v2i32/v2f32 insertelt patterns

Using REG_SEQUENCE produces better code than INSERT_SUBREG,
we can omit one move instruction in many cases.

Fixes: SWDEV-298028

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




More information about the All-commits mailing list