[all-commits] [llvm/llvm-project] 16dad1: [ValueTracking] Have sub and xor in KnownNonZero t...

AZero13 via All-commits all-commits at lists.llvm.org
Mon Jul 7 06:19:09 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 16dad11f503e4eeac1b0c8909997a10a7f4e6cb4
      https://github.com/llvm/llvm-project/commit/16dad11f503e4eeac1b0c8909997a10a7f4e6cb4
  Author: AZero13 <gfunni234 at gmail.com>
  Date:   2025-07-07 (Mon, 07 Jul 2025)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/test/Transforms/InstCombine/ctpop-cttz.ll

  Log Message:
  -----------
  [ValueTracking] Have sub and xor in KnownNonZero take the same exact path (#146975)

If x - y == 0, then x ^ y == 0. Therefore, we can do the exact same
checks.

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



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