[PATCH] D101210: [InstCombine] ctpop(X) + ctpop(Y) => ctpop(X | Y) if X and Y have no common bits (PR48999)
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 24 08:27:17 PDT 2021
nikic added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/ctpop.ll:208
+; CHECK-NEXT: [[TMP2:%.*]] = call i32 @llvm.ctpop.i32(i32 [[TMP1]]), !range [[RNG1]]
+; CHECK-NEXT: ret i32 [[TMP2]]
;
----------------
nikic wrote:
> We could optimize ctpop(rot(X)) -> ctpop(X).
Though I'm not sure that was actually the case you wanted to test. As you still have the `%a` argument, maybe this was just a typo :)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101210/new/
https://reviews.llvm.org/D101210
More information about the llvm-commits
mailing list