[all-commits] [llvm/llvm-project] bf716f: [RISCV] Refine cost on Min/Max reduction with i1 t...

Shih-Po Hung via All-commits all-commits at lists.llvm.org
Fri Jan 26 03:35:40 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf716fb7169b500a7fe3f20a39ac0288fb13cac5
      https://github.com/llvm/llvm-project/commit/bf716fb7169b500a7fe3f20a39ac0288fb13cac5
  Author: Shih-Po Hung <shihpo.hung at sifive.com>
  Date:   2024-01-26 (Fri, 26 Jan 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/RISCV/reduce-max.ll
    M llvm/test/Analysis/CostModel/RISCV/reduce-min.ll

  Log Message:
  -----------
  [RISCV] Refine cost on Min/Max reduction with i1 type (#79401)

It is split off from #77342.
InstCombine transform min/max reduction with i1 into arithmetic
reduction,
so this patch reuses the cost logic in arithmetic reduction cost
function.




More information about the All-commits mailing list