[all-commits] [llvm/llvm-project] beb4a4: [InstCombine] Use known bits to simplify mask in f...

Julian Nagele via All-commits all-commits at lists.llvm.org
Fri Mar 14 09:34:25 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: beb4a482973d429ce73cbcba51f3199f7955f8ba
      https://github.com/llvm/llvm-project/commit/beb4a482973d429ce73cbcba51f3199f7955f8ba
  Author: Julian Nagele <j.nagele at apple.com>
  Date:   2025-03-14 (Fri, 14 Mar 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/select-icmp-and.ll

  Log Message:
  -----------
  [InstCombine] Use known bits to simplify mask in foldSelectICmpAnd (#128741)

Make use of known bits when trying to decompose a select/icmp bittest and folding it into an and. This means we can fold when additional information, for instance via a range attribute or metadata, allows us to conclude that the resulting mask is in fact a power of two.



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