aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp
diff options
context:
space:
mode:
authorBrandon Wu <brandon.wu@sifive.com>2024-01-26 11:16:28 +0800
committerGitHub <noreply@github.com>2024-01-26 11:16:28 +0800
commite0092eae431956a2fd17f7ea88e7ba26d5e44f7e (patch)
treeb95fba024e49dd685110569a6c4d0ba8c32cfc04 /llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp
parentfb94c6491a114ebd5815b1d42665a8f6bcd9d639 (diff)
downloadllvm-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