[all-commits] [llvm/llvm-project] 505d57: [Hexagon] Improve BUILD_VECTOR codegen

joshherr-quic via All-commits all-commits at lists.llvm.org
Wed Dec 29 10:23:19 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 505d57486e57eb61e29bed6517de5152d208fede
      https://github.com/llvm/llvm-project/commit/505d57486e57eb61e29bed6517de5152d208fede
  Author: Joshua Herrera <joshherr at quicinc.com>
  Date:   2021-12-29 (Wed, 29 Dec 2021)

  Changed paths:
    M llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
    A llvm/test/CodeGen/Hexagon/autohvx/build-vector-i32-128b.ll
    A llvm/test/CodeGen/Hexagon/autohvx/build-vector-i32-64b.ll
    A llvm/test/CodeGen/Hexagon/autohvx/isel-build-vector.ll

  Log Message:
  -----------
  [Hexagon] Improve BUILD_VECTOR codegen

For vectors with repeating values, old codegen would rotate and insert
every duplicate element. This patch replaces that behavior with a splat
of the most common element, vinsert/vror only occur when needed.




More information about the All-commits mailing list