[PATCH] D152677: [InstCombine] If there is a known-bit transform is_pow2 check to just check for any other bits
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 17 09:20:12 PDT 2023
nikic added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp:3626
IntrinsicInst *II,
const APInt &C) {
if (Cmp.isEquality())
----------------
If you rebase, there should be a switch here where you can handle both equality and non-equality comparisons in one place.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152677/new/
https://reviews.llvm.org/D152677
More information about the llvm-commits
mailing list