xbolva00 added a comment. In D122077#3413550 <https://reviews.llvm.org/D122077#3413550>, @joerg wrote:
> Why is this fold preferable to `(X & (X-1)) == 0`? At least on all > architectures without native population count, the binary-and based test is > preferable and it might even be better with it. Less IR instructions. I think SDAG already expands some ctpop patterns to logic (backends should decide about optimal form) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D122077/new/ https://reviews.llvm.org/D122077 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits