[PATCH] D122757: [InstSimplify] Fold (ctpop(X) == N) || (X != 0) into X != 0 where N > 0

Hirochika Matsumoto via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 1 10:06:31 PDT 2022


hkmatsumoto updated this revision to Diff 419791.
hkmatsumoto added a comment.

Address code reviews


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D122757

Files:
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/test/Transforms/InstCombine/ispow2.ll
  llvm/test/Transforms/InstSimplify/and-or-icmp-ctpop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122757.419791.patch
Type: text/x-patch
Size: 6895 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220401/a3fadea9/attachment.bin>


More information about the llvm-commits mailing list