[PATCH] D150422: (WIP)[ConstantFolding] fold integers whose bitwidth is greater than 63.
Kohei Asano via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 13 17:17:13 PDT 2023
khei4 added inline comments.
================
Comment at: llvm/lib/Analysis/ConstantFolding.cpp:440
+ if (n <= IntBytes)
+ CurPtr[i] = (unsigned char)(Val.lshr(n * 8).getZExtValue());
++ByteOffset;
----------------
RKSimon wrote:
> Val.extractBits(8, n * 8).getZextValue()
Thank you! This causes test failure caused by allocsize of vector size mismatching! It will be fixed in https://reviews.llvm.org/D150515
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150422/new/
https://reviews.llvm.org/D150422
More information about the llvm-commits
mailing list