[all-commits] [llvm/llvm-project] 7f811c: [RISCV] Optimize (sext.w, srli) to sraiw with Zba.

ZCBing via All-commits all-commits at lists.llvm.org
Sun Feb 27 18:35:03 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f811ce12744db67e9d6450541c6bd313e06db59
      https://github.com/llvm/llvm-project/commit/7f811ce12744db67e9d6450541c6bd313e06db59
  Author: Chenbing Zheng <Chenbing.Zheng at streamcomputing.com>
  Date:   2022-02-28 (Mon, 28 Feb 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/test/CodeGen/RISCV/rv64i-exhaustive-w-insts.ll

  Log Message:
  -----------
  [RISCV] Optimize (sext.w, srli) to sraiw with Zba.

In this patch, we add a more narrower exclusion for
zeroext (srl x) -> srli (slli x), so that it provides an opportunity
for the selection of sraiw.

Reviewed By: craig.topper

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




More information about the All-commits mailing list