[PATCH] D122077: [InstCombine] Fold (ctpop(X) == 1) | (X == 0) into ctpop(X) < 2

Simon Pilgrim via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 19 13:55:32 PDT 2022


RKSimon added inline comments.


================
Comment at: llvm/test/Transforms/InstCombine/icmp-or.ll:382
+  ret i1 %5
+}
+
----------------
What about if the ctpop has multi uses?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D122077



More information about the cfe-commits mailing list