diff options
author | David Sherwood <david.sherwood@arm.com> | 2021-04-16 11:39:44 +0100 |
---|---|---|
committer | David Sherwood <david.sherwood@arm.com> | 2021-04-19 08:34:17 +0100 |
commit | 83f5fa519ec5efcad200e4d9eb425e747d58088b (patch) | |
tree | ac551a7c751ab4ad3e8be55686b1fa91786e87b5 /clang/unittests/Frontend/CompilerInvocationTest.cpp | |
parent | 9f33943ee0155ba05d509e7a3b6999f51d0bff6d (diff) | |
download | llvm-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