aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Function.cpp
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2022-06-20 18:28:34 +0200
committerMark de Wever <koraq@xs4all.nl>2022-06-22 18:47:08 +0200
commitcf927669eba9c768bfe3bf1cdebc7c03993831e8 (patch)
tree447170fefb9631e8027f17b6b58d8977cf4d57b9 /llvm/lib/IR/Function.cpp
parent9e6261edc0547b0c4f82d6fa7776c3447f0229d9 (diff)
downloadllvm-cf927669eba9c768bfe3bf1cdebc7c03993831e8.zip
llvm-cf927669eba9c768bfe3bf1cdebc7c03993831e8.tar.gz
llvm-cf927669eba9c768bfe3bf1cdebc7c03993831e8.tar.bz2
[libc++] Reduces std::to_chars instantiations.
Instead of instantiating all functions called by std::to_chars for the integral types only instantiate them for 32 and 64 bit integral types. This results in a smaller binary when using different types. In an example using the types: signed char, short, int, long, long long, unsigned char, unsigned short, unsigned int, unsigned long, and unsigned long long this saved 2792 bytes of code size. For libc++.so.1 is saves 688 bytes of code size (64-bit Linux). This was discovered while investigating a solution for #52709. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D128215
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
0 files changed, 0 insertions, 0 deletions