[all-commits] [llvm/llvm-project] 79016f: [RISCV] Refine the heuristics for our custom (mul ...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Jul 14 18:24:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79016f6eef4662fae83e31c532dff16043984f6e
      https://github.com/llvm/llvm-project/commit/79016f6eef4662fae83e31c532dff16043984f6e
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-07-14 (Thu, 14 Jul 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/test/CodeGen/RISCV/div-by-constant.ll

  Log Message:
  -----------
  [RISCV] Refine the heuristics for our custom (mul (and X, C2), C1) isel.

Prefer to use SLLI instead of zext.w/zext.h in more cases. SLLI
might be better for compression.




More information about the All-commits mailing list