aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorDavid Sherwood <david.sherwood@arm.com>2021-09-16 14:19:55 +0100
committerDavid Sherwood <david.sherwood@arm.com>2021-09-20 15:01:59 +0100
commitf988f680649ad38806897e7aa75e95e9fda88ffd (patch)
tree25f760b0e00133dd4948c82aba8c1229704a3f7c /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parent680592b5d0a71502964f5568fdc953f8da495b16 (diff)
downloadllvm-f988f680649ad38806897e7aa75e95e9fda88ffd.zip
llvm-f988f680649ad38806897e7aa75e95e9fda88ffd.tar.gz
llvm-f988f680649ad38806897e7aa75e95e9fda88ffd.tar.bz2
[Analysis] Add support for vscale in computeKnownBitsFromOperator
In ValueTracking.cpp we use a function called computeKnownBitsFromOperator to determine the known bits of a value. For the vscale intrinsic if the function contains the vscale_range attribute we can use the maximum and minimum values of vscale to determine some known zero and one bits. This should help to improve code quality by allowing certain optimisations to take place. Tests added here: Transforms/InstCombine/icmp-vscale.ll Differential Revision: https://reviews.llvm.org/D109883
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions