[all-commits] [llvm/llvm-project] 806028: [GlobaISel] Allow expanding of sdiv -> mul by cons...

jyli0116 via All-commits all-commits at lists.llvm.org
Mon Jul 14 07:01:34 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 806028add1fb2a5912b78c23c37aa51bc9a8e96a
      https://github.com/llvm/llvm-project/commit/806028add1fb2a5912b78c23c37aa51bc9a8e96a
  Author: jyli0116 <yu.li at arm.com>
  Date:   2025-07-14 (Mon, 14 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/GlobalISel/combine-sdiv.mir
    M llvm/test/CodeGen/AArch64/arm64-neon-mul-div-cte.ll
    A llvm/test/CodeGen/AArch64/combine-sdiv.ll
    M llvm/test/CodeGen/AArch64/select_const.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fold-binop-into-select.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/sdiv.i32.ll
    M llvm/test/CodeGen/RISCV/GlobalISel/div-by-constant.ll

  Log Message:
  -----------
  [GlobaISel] Allow expanding of sdiv -> mul by constant  (#146504)

Allows expand of sdiv->mul by constant combine for the general case.
Previously this was only occurring in the exact case. 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