[all-commits] [llvm/llvm-project] c02146: [InstCombine] Fold (bw-1) - ctlz(x&-x) to cttz (#2...

AZero13 via All-commits all-commits at lists.llvm.org
Tue Jun 23 10:39:51 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c0214621a7492d950d0863501fe178c4e74a70f5
      https://github.com/llvm/llvm-project/commit/c0214621a7492d950d0863501fe178c4e74a70f5
  Author: AZero13 <gfunni234 at gmail.com>
  Date:   2026-06-24 (Wed, 24 Jun 2026)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/select-ctlz-to-cttz.ll

  Log Message:
  -----------
  [InstCombine] Fold (bw-1) - ctlz(x&-x) to cttz (#205383)

Works for non-powers of 2.

Alive2: https://alive2.llvm.org/ce/z/-cbxFz



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