[PATCH] D142546: [ConstraintElimination] Decompose or instruction if the constant operand < 2^known_zero_bits of the first operand.
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 26 17:40:32 PST 2023
goldstein.w.n added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/ConstraintElimination.cpp:353
+ if (CI->getZExtValue() < pow(2, KnownBits.Zero.getZExtValue()))
+ return MergeResults(Op0, CI, IsSigned);
+ }
----------------
Is it more useful to have an `add` than an `or`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142546/new/
https://reviews.llvm.org/D142546
More information about the llvm-commits
mailing list