[all-commits] [llvm/llvm-project] e8f1df: [RISCV] Supplement PACKH instruction pattern

WangLian via All-commits all-commits at lists.llvm.org
Fri Jan 7 01:59:39 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e8f1dfe923077dd7595d293f0e0cd4cb3b38ac4e
      https://github.com/llvm/llvm-project/commit/e8f1dfe923077dd7595d293f0e0cd4cb3b38ac4e
  Author: Lian Wang <Lian.Wang at streamcomputing.com>
  Date:   2022-01-07 (Fri, 07 Jan 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
    M llvm/test/CodeGen/RISCV/rv32zbp.ll
    M llvm/test/CodeGen/RISCV/rv64zbp.ll

  Log Message:
  -----------
  [RISCV] Supplement PACKH instruction pattern

Optimize (rs1 & 255) | ((rs2 & 255) << 8) -> (PACKH rs1, rs2).

Reviewed By: craig.topper

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




More information about the All-commits mailing list