[all-commits] [llvm/llvm-project] 1e6d06: [RISCV] Simplify and improve getLMULCost.

Craig Topper via All-commits all-commits at lists.llvm.org
Fri May 19 14:13:41 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e6d069709f32adcd6e1e8bedff621351cc43d34
      https://github.com/llvm/llvm-project/commit/1e6d069709f32adcd6e1e8bedff621351cc43d34
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-05-19 (Fri, 19 May 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

  Log Message:
  -----------
  [RISCV] Simplify and improve getLMULCost.

Use divideCeil for fixed vectors which avoids the need for a std::max
with 1 and should be more correct for odd sized vectors if those
occur.

Use conditional operator instead of an if/else.




More information about the All-commits mailing list