[PATCH] D89952: [SelectionDAG] Fine tune CTPOP optimizations

David Zarzycki via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 22 05:50:43 PDT 2020


davezarzycki added a comment.

Also, this patch ought to be refined to optimize something like CTPOP(x) > 62 into CTPOP(NOT(x)) <= 2 or a chain of (x | (x + 1)) and a final comparison against a mask value instead of zero (whatever is more efficient).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D89952



More information about the llvm-commits mailing list