[PATCH] D101840: [InstCombine] ctlz(x) -> 0 if x is known negative number

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 4 13:45:11 PDT 2021


craig.topper added a comment.

In D101840#2736994 <https://reviews.llvm.org/D101840#2736994>, @xbolva00 wrote:

> Moved to InstCombine.

Your test already passes before your change. If the Known bits is negative, PossibleZeros and DefiniteZeros will both be 0 which triggers the PossibleZeros == DefiniteZeros case.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101840/new/

https://reviews.llvm.org/D101840



More information about the llvm-commits mailing list