[all-commits] [llvm/llvm-project] a645ec: [AArch64] Extra unit tests for trunc lowering of v...

Nilanjana Basu via All-commits all-commits at lists.llvm.org
Thu Dec 15 07:21:28 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a645ec0d3df3692d54bccb71076f5836fa56fe40
      https://github.com/llvm/llvm-project/commit/a645ec0d3df3692d54bccb71076f5836fa56fe40
  Author: Nilanjana Basu <n_basu at apple.com>
  Date:   2022-12-15 (Thu, 15 Dec 2022)

  Changed paths:
    M llvm/test/CodeGen/AArch64/trunc-to-tbl.ll

  Log Message:
  -----------
  [AArch64] Extra unit tests for trunc lowering of vectors

These tests show code generation for vectorized trunc lowering from i16 to i8 in AArch64.

Reviewed By: fhahn

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


  Commit: 02d09ffc1b09fe025272231a6ebebcc7f883e8e6
      https://github.com/llvm/llvm-project/commit/02d09ffc1b09fe025272231a6ebebcc7f883e8e6
  Author: Nilanjana Basu <n_basu at apple.com>
  Date:   2022-12-15 (Thu, 15 Dec 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/test/CodeGen/AArch64/trunc-to-tbl.ll

  Log Message:
  -----------
  [AArch64] Extending lowering of 'trunc <(8|16) x i64> %x to <(8|16) x i8>' to use tbl instructions

[AArch64] Patch for lowering trunc instructions to 'tbl' for (8|16)xi32 -> (8|16)xi8 conversions in https://reviews.llvm.org/D133495 is extended to support trunc to tbl lowering for (8|16) x i64 to (8|16) x i8.

A microbenchmark for runtime for these transformations is added in https://reviews.llvm.org/D136274

Reviewed by: fhahn, t.p.northover

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


Compare: https://github.com/llvm/llvm-project/compare/aaf66cc8a628...02d09ffc1b09


More information about the All-commits mailing list