[PATCH] D97074: Add getDemandedBits for uses.
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 13 04:23:16 PST 2021
RKSimon added a comment.
In D97074#2579069 <https://reviews.llvm.org/D97074#2579069>, @lebedev.ri wrote:
> The patch's description states what the patch does, but not *why* it does that.
+1
================
Comment at: llvm/lib/Analysis/DemandedBits.cpp:465
+
+ unsigned BitWidth = T->getScalarSizeInBits();
+
----------------
Could this be used in the APInt::getAllOnesValue() above instead of the getTypeSizeInBits call?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97074/new/
https://reviews.llvm.org/D97074
More information about the llvm-commits
mailing list