[all-commits] [llvm/llvm-project] 9c0743: [GlobalISel] Allow expansion of urem by constant i...

jyli0116 via All-commits all-commits at lists.llvm.org
Wed Jul 2 05:46:57 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c0743fbc5ba38ae5f66444d144d314326dc8468
      https://github.com/llvm/llvm-project/commit/9c0743fbc5ba38ae5f66444d144d314326dc8468
  Author: jyli0116 <yu.li at arm.com>
  Date:   2025-07-02 (Wed, 02 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/pr58431.ll
    A llvm/test/CodeGen/AArch64/rem-by-const.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/urem.i32.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/urem.i64.ll

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

This patch allows urem by a constant to be expanded more efficiently to
avoid the need for expensive udiv instructions. This is part of the
resolution to issue #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