diff options
author | David Sherwood <david.sherwood@arm.com> | 2021-09-16 14:19:55 +0100 |
---|---|---|
committer | David Sherwood <david.sherwood@arm.com> | 2021-09-20 15:01:59 +0100 |
commit | f988f680649ad38806897e7aa75e95e9fda88ffd (patch) | |
tree | 25f760b0e00133dd4948c82aba8c1229704a3f7c /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | 680592b5d0a71502964f5568fdc953f8da495b16 (diff) | |
download | llvm-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