[PATCH] D150422: [ConstantFolding] fold integers whose bitwidth is greater than 63, and not multiplies of 8

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 12 03:25:40 PDT 2023


RKSimon added inline comments.


================
Comment at: llvm/lib/Analysis/ConstantFolding.cpp:433
-    if (CI->getBitWidth() > 64 ||
-        (CI->getBitWidth() & 7) != 0)
-      return false;
----------------
I'd be surprised if non-byte sized widths work at all - moving to APInt from uint64_t will allow you to remove the 64 bit limit however, so maybe just work on that first?


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

https://reviews.llvm.org/D150422



More information about the llvm-commits mailing list