aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Frontend/CompilerInvocationTest.cpp
diff options
context:
space:
mode:
authorDavid Sherwood <david.sherwood@arm.com>2021-04-16 11:39:44 +0100
committerDavid Sherwood <david.sherwood@arm.com>2021-04-19 08:34:17 +0100
commit83f5fa519ec5efcad200e4d9eb425e747d58088b (patch)
treeac551a7c751ab4ad3e8be55686b1fa91786e87b5 /clang/unittests/Frontend/CompilerInvocationTest.cpp
parent9f33943ee0155ba05d509e7a3b6999f51d0bff6d (diff)
downloadllvm-83f5fa519ec5efcad200e4d9eb425e747d58088b.zip
llvm-83f5fa519ec5efcad200e4d9eb425e747d58088b.tar.gz
llvm-83f5fa519ec5efcad200e4d9eb425e747d58088b.tar.bz2
[CodeGen] Improve code generation for clamping of constant indices with scalable vectors
When trying to clamp a constant index into a scalable vector we can test if the index is less than the minimum number of elements in the vector. If so, we can simply return the index because we know it is guaranteed to fit inside the vector. Differential Revision: https://reviews.llvm.org/D100639
Diffstat (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp')
0 files changed, 0 insertions, 0 deletions