[PATCH] D128570: [ISel] Round down mask bit when merge undef(s) for DAG combine

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 28 00:20:15 PDT 2022


craig.topper added inline comments.


================
Comment at: llvm/include/llvm/ADT/APInt.h:2251
 ///
 /// TODO: Do we need a mode where all bits must be set when merging down?
+APInt ScaleBitMask(const APInt &A, unsigned NewBitWidth, bool Down = false);
----------------
This comment uses the word "down" as well, but to mean the number of bits is decreasing.  I believe this patch is implementing this TODO.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128570/new/

https://reviews.llvm.org/D128570



More information about the llvm-commits mailing list