[PATCH] D149421: [KnownBits] Improve `KnownBits::rem(X, Y)` in cases where we can deduce low-bits of output
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 4 01:31:03 PDT 2023
nikic added inline comments.
================
Comment at: llvm/lib/Support/KnownBits.cpp:558
+ APInt ZerosMask = LHS.Zero & Mask;
+ KnownBits KnownOut = Known;
+ KnownOut.One |= OnesMask;
----------------
You can drop the KnownOut variable here and just use Known.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149421/new/
https://reviews.llvm.org/D149421
More information about the llvm-commits
mailing list