diff options
author | serge-sans-paille <sguelton@redhat.com> | 2020-11-26 15:22:20 +0100 |
---|---|---|
committer | serge-sans-paille <sguelton@redhat.com> | 2020-12-03 20:11:11 +0100 |
commit | 9501419e879e56273f504beda3b13bf6bf82ae2b (patch) | |
tree | 2d68aadc074dd2551adfd1ea6449728c930890a4 /llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp | |
parent | c288715e952fe0e179d645a76b0f518e2403a42b (diff) | |
download | llvm-9501419e879e56273f504beda3b13bf6bf82ae2b.zip llvm-9501419e879e56273f504beda3b13bf6bf82ae2b.tar.gz llvm-9501419e879e56273f504beda3b13bf6bf82ae2b.tar.bz2 |
Speedup some unicode rendering
Use a fast path for column width computation for ascii characters. Especially
relevant for llvm-objdump.
before:
% time ./bin/llvm-objdump -D -j .text /lib/libc.so.6 >/dev/null
./bin/llvm-objdump -D -j .text /lib/libc.so.6 > /dev/null 0.75s user 0.01s system 99% cpu 0.757 total
after:
% time ./bin/llvm-objdump -D -j .text /lib/libc.so.6 >/dev/null
./bin/llvm-objdump -D -j .text /lib/libc.so.6 > /dev/null 0.37s user 0.01s system 99% cpu 0.378 total
Differential Revision: https://reviews.llvm.org/D92180
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp')
0 files changed, 0 insertions, 0 deletions