aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/PredicateInfo.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2020-04-18 11:57:50 -0700
committerCraig Topper <craig.topper@gmail.com>2020-04-18 12:52:47 -0700
commite00cfe254d99629ec344031adfe1878a84f3b0b3 (patch)
treec87bec0082dc12289ae95c9603c3326adccf9e85 /llvm/lib/Transforms/Utils/PredicateInfo.cpp
parentaad3d578da0ddf6d0d3d95e5e09a32e47f6dfeb8 (diff)
downloadllvm-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