[all-commits] [llvm/llvm-project] 699b6b: [RISCV] Cost UDIV/UREM by a constant power of 2 as...

Ryan Buchner via All-commits all-commits at lists.llvm.org
Fri Apr 17 15:31:19 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 699b6bd9cbe2897839fb4c38b310479b887ccd37
      https://github.com/llvm/llvm-project/commit/699b6bd9cbe2897839fb4c38b310479b887ccd37
  Author: Ryan Buchner <rbuchner at qti.qualcomm.com>
  Date:   2026-04-17 (Fri, 17 Apr 2026)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
    M llvm/test/Analysis/CostModel/RISCV/arith-int.ll

  Log Message:
  -----------
  [RISCV] Cost UDIV/UREM by a constant power of 2 as a SHL/AND in getArithmeticInstrCost() (#179570)

Similar to behavior in X86 and AArch64.

---------

Co-authored-by: Ryan Buchner <rbuchner at qti.qualcomm.com>
Co-authored-by: Luke Lau <luke_lau at icloud.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list