[PATCH] D149421: [KnownBits] Improve `KnownBits::rem(X, Y)` in cases where we can deduce low-bits of output

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 28 09:27:05 PDT 2023


foad added inline comments.


================
Comment at: llvm/lib/Support/KnownBits.cpp:565-567
   KnownBits Known(BitWidth);
 
+  remGetLowBits(Known, LHS, RHS);
----------------
New suggestion: simplify this to `KnownBits Known = remGetLowBits(LHS, RHS);`


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