[PATCH] D142234: [ConstantRange] Handle `Intrinsic::ctlz`

Antonio Frighetto via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 15 03:05:21 PST 2023


antoniofrighetto added a comment.

@nikic, rebased and removed the old test. Might be wrong, but it seems like `O2` is already handling the test case you suggested; whereas the latter one I previously suggested (the one with `if (n < 8 && n > 2) return 0;`, which can never happen) does not seem to be reduced to a `icmp`, `select`, `ret` as of now.


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

https://reviews.llvm.org/D142234



More information about the llvm-commits mailing list