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

Hirochika Matsumoto via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 26 11:06:23 PDT 2022


hkmatsumoto added inline comments.


================
Comment at: llvm/test/Transforms/InstCombine/ispow2.ll:540
-
-define i1 @isnot_pow2_ctpop_wrong_pred1(i32 %x) {
-; CHECK-LABEL: @isnot_pow2_ctpop_wrong_pred1(
----------------
Renamed to is_pow2or0_ctpop.


================
Comment at: llvm/test/Transforms/InstCombine/ispow2.ll:555
-
-define i1 @isnot_pow2_ctpop_wrong_pred1_logical(i32 %x) {
-; CHECK-LABEL: @isnot_pow2_ctpop_wrong_pred1_logical(
----------------
Renamed to is_pow2or0_ctpop_logical.


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