[all-commits] [llvm/llvm-project] 9e94ec: [ValueTracking] Set KnownBits from MSB shift idiom...

Marina Taylor via All-commits all-commits at lists.llvm.org
Mon Jun 8 09:28:59 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e94ec5dba70d5387561647a1b3b5d83bb0d3522
      https://github.com/llvm/llvm-project/commit/9e94ec5dba70d5387561647a1b3b5d83bb0d3522
  Author: Marina Taylor <marina_taylor at apple.com>
  Date:   2026-06-08 (Mon, 08 Jun 2026)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp
    A llvm/test/Analysis/ValueTracking/knownbits-shl-ctlz-msb.ll

  Log Message:
  -----------
  [ValueTracking] Set KnownBits from MSB shift idiom (#200203)

`shl X, sub(Y, xor(ctlz(X, true), BitWidth-1))` shifts X so that its MSB
lands at bit Y, when BitWidth is a power of 2.

https://alive2.llvm.org/ce/z/qknVdk

Assisted-by: claude



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