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

Shilei Tian via All-commits all-commits at lists.llvm.org
Sun Feb 9 21:11:31 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 70fdd9f0a24154b63169c66aff1ddc4507db6034
      https://github.com/llvm/llvm-project/commit/70fdd9f0a24154b63169c66aff1ddc4507db6034
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2025-02-10 (Mon, 10 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.ll
    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` (#126457)

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.

Fixes SWDEV-512440.



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