[all-commits] [llvm/llvm-project] 9760a8: [GlobalISel] Check whether `G_CTLZ` is legal in `m...

Shilei Tian via All-commits all-commits at lists.llvm.org
Sun Feb 9 19:26:28 PST 2025


  Branch: refs/heads/users/shiltian/check-ctlz-in-matchUMulHToLShr
  Home:   https://github.com/llvm/llvm-project
  Commit: 9760a8d380b923067a1dff35763714e0eb319fe2
      https://github.com/llvm/llvm-project/commit/9760a8d380b923067a1dff35763714e0eb319fe2
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2025-02-09 (Sun, 09 Feb 2025)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
    A llvm/test/CodeGen/AMDGPU/GlobalISel/no-ctlz-from-umul-to-lshr-in-postlegalizer.mir

  Log Message:
  -----------
  [GlobalISel] Check whether `G_CTLZ` is legal in `matchUMulHToLShr`

We need to check `G_CTLZ` because the combine uses `G_CTLZ` to get log base 2,
and it is not always legal for on a target.



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