[llvm] [InstCombine] Fold `ctpop(X) <u 2` into `ctpop(X) == 1` if X is non-zero (PR #67268)

via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 24 10:00:56 PDT 2023


goldsteinn wrote:

Maybe leave a comment explaining as much though. But nikic is right, we intentionally don't do this. In the backend if we still have non-zero info we optimize this properly.

https://github.com/llvm/llvm-project/pull/67268


More information about the llvm-commits mailing list