[all-commits] [llvm/llvm-project] fc5c5a: [GlobalISel] Allow expansion of srem by constant i...

jyli0116 via All-commits all-commits at lists.llvm.org
Thu Jul 17 06:44:22 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc5c5a934d2560559221bcb334b14ef4aa96a2dd
      https://github.com/llvm/llvm-project/commit/fc5c5a934d2560559221bcb334b14ef4aa96a2dd
  Author: jyli0116 <yu.li at arm.com>
  Date:   2025-07-17 (Thu, 17 Jul 2025)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
    M llvm/include/llvm/Target/GlobalISel/Combine.td
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
    M llvm/test/CodeGen/AArch64/rem-by-const.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/srem.i32.ll

  Log Message:
  -----------
  [GlobalISel] Allow expansion of srem by constant in prelegalizer (#148845)

This patch allows srem by a constant to be expanded more efficiently to
avoid the need for expensive sdiv instructions. This is the last part of
the patches which fixes #118090



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