[libc-commits] [llvm] [libc] [libc] default enable -ftrivial-auto-var-init=pattern (PR #78776)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Fri Jan 19 12:39:56 PST 2024


nickdesaulniers wrote:

FWIW, here's some measurements from bloaty: https://gist.github.com/nickdesaulniers/1092b3748b6810ae97053973c40b19a2.

The two cases of relatively large increases in code size:
1. `__llvm_libc_18_0_0_git::StrToNumResult<__llvm_libc_18_0_0_git::internal::ExpandedFloat<long double> > __llvm_libc_18_0_0_git::internal::hexadecimal_string_to_float<long double>(char const*, char, __llvm_libc_18_0_0_git::internal::RoundDirection)`
2. `__llvm_libc_18_0_0_git::internal::FloatConvertReturn<long double> __llvm_libc_18_0_0_git::internal::decimal_exp_to_float<long double>(__llvm_libc_18_0_0_git::internal::ExpandedFloat<long double>, char const*, bool, __llvm_libc_18_0_0_git::internal::RoundDirection)`

These look like their no longer being inlined due to increases in code size, perhaps:
1. `__llvm_libc_18_0_0_git::construct_thread_name_file_path(__llvm_libc_18_0_0_git::cpp::StringStream&, int)`
2. `__llvm_libc_18_0_0_git::printf_core::FloatWriter::write_middle_block(unsigned int)`

https://github.com/llvm/llvm-project/pull/78776


More information about the libc-commits mailing list