diff options
author | Brandon Wu <brandon.wu@sifive.com> | 2024-01-26 11:16:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-26 11:16:28 +0800 |
commit | e0092eae431956a2fd17f7ea88e7ba26d5e44f7e (patch) | |
tree | b95fba024e49dd685110569a6c4d0ba8c32cfc04 /llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp | |
parent | fb94c6491a114ebd5815b1d42665a8f6bcd9d639 (diff) | |
download | llvm-e0092eae431956a2fd17f7ea88e7ba26d5e44f7e.zip llvm-e0092eae431956a2fd17f7ea88e7ba26d5e44f7e.tar.gz llvm-e0092eae431956a2fd17f7ea88e7ba26d5e44f7e.tar.bz2 |
[RISCV][clang] Optimize memory usage of intrinsic lookup table (#77487)
This patch optimize:
1. Reduce string size of RVVIntrinsicDef.
2. Reduce the type size of the index of intrinsics.
I use valgrind --tool=massif to analyze a simple program:
```
#include <riscv_vector.h>
vint32m1_t test(vint32m1_t v1, vint32m1_t v2, size_t vl) {
return __riscv_vadd(v1, v2, vl);
}
```
and before optimization, the peak memory usage is 15.68MB,
after optimization, the peak memory usage is 13.69MB.
Diffstat (limited to 'llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions