[all-commits] [llvm/llvm-project] 7a73a8: [RISCV] Allow large div peephole optimization for ...

kvpanch via All-commits all-commits at lists.llvm.org
Fri Oct 17 13:42:45 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a73a8b47cf79fa4b8398ec28bc1b50c2e0a0805
      https://github.com/llvm/llvm-project/commit/7a73a8b47cf79fa4b8398ec28bc1b50c2e0a0805
  Author: kvpanch <223931578+kvpanch at users.noreply.github.com>
  Date:   2025-10-17 (Fri, 17 Oct 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/div_minsize.ll

  Log Message:
  -----------
  [RISCV] Allow large div peephole optimization for minsize (#163679)

When `minsize` function attribute is set, division of large integers by
power-of-2 is not optimized as it's expected by ExpandLargeDivRem pass,
which results to compiler crash

Co-authored-by: kvp <mammal_windier8j 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