diff options
author | Jay Foad <jay.foad@amd.com> | 2024-06-12 20:08:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-12 20:08:54 +0100 |
commit | abedb3b8356d5d56f1c575c4f7682fba2cb19787 (patch) | |
tree | 752e729258d943bb1bd03a579e809eddb46e402d /clang/lib/Basic/FileManager.cpp | |
parent | 987b59abd0f7353cabf2f620a61ec903a885522a (diff) | |
download | llvm-abedb3b8356d5d56f1c575c4f7682fba2cb19787.zip llvm-abedb3b8356d5d56f1c575c4f7682fba2cb19787.tar.gz llvm-abedb3b8356d5d56f1c575c4f7682fba2cb19787.tar.bz2 |
[CodeGenTypes] Speed up getVectorElementType and getVectorMinNumElements (#95282)
Implement MVT::getVectorElementType and MVT::getVectorMinNumElements
with table lookup instead of switch.
This speeds up "check-llvm-codegen-amdgpu" by about 7% in my Release
build.
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
0 files changed, 0 insertions, 0 deletions