diff options
author | Craig Topper <craig.topper@gmail.com> | 2020-04-18 11:57:50 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2020-04-18 12:52:47 -0700 |
commit | e00cfe254d99629ec344031adfe1878a84f3b0b3 (patch) | |
tree | c87bec0082dc12289ae95c9603c3326adccf9e85 /llvm/lib/Transforms/Utils/PredicateInfo.cpp | |
parent | aad3d578da0ddf6d0d3d95e5e09a32e47f6dfeb8 (diff) | |
download | llvm-e00cfe254d99629ec344031adfe1878a84f3b0b3.zip llvm-e00cfe254d99629ec344031adfe1878a84f3b0b3.tar.gz llvm-e00cfe254d99629ec344031adfe1878a84f3b0b3.tar.bz2 |
[Local] Simplify the alignment limits in getOrEnforceKnownAlignment. NFCI
We previously clamped the trailing zero count to 31 bits. And
then clamped the final alignment to MaximumAlignment which is
1 << 29.
This patch simplifies this to just clamp the trailing zero to
29 using MaxAlignmentExponent.
I was looking into changing this function to use Align/MaybeAlign
and noticed this.
Differential Revision: https://reviews.llvm.org/D78418
Diffstat (limited to 'llvm/lib/Transforms/Utils/PredicateInfo.cpp')
0 files changed, 0 insertions, 0 deletions