Go to file
Duncan P. N. Exon Smith 0b73d71abb AsmPrinter: Compute absolute label difference directly
Create a low-overhead path for `EmitLabelDifference()` that emits a
emits an absolute number when (1) the output is an object stream and (2)
the two symbols are in the same data fragment.

This drops memory usage on Mach-O from 975 MB down to 919 MB (5.8%).
The only call is when `!doesDwarfUseRelocationsAcrossSections()` --
i.e., on Mach-O -- since otherwise an absolute offset from the start of
the section needs a relocation.  (`EmitLabelDifference()` is cheaper on
ELF anyway, since it creates 1 fewer temp symbol, and it gets called far
less often.  It's not clear to me if this is even a bottleneck there.)

(I'm looking at `llc` memory usage on `verify-uselistorder.lto.opt.bc`;
see r236629 for details.)

llvm-svn: 237876
2015-05-21 02:41:23 +00:00
clang Avoid using a C++11 library feature not present in libstdc++4.7. 2015-05-21 01:26:53 +00:00
clang-tools-extra Copy lit shell changes from clang to clang-tools-extra, excluding some failing tests 2015-05-20 20:33:18 +00:00
compiler-rt [darwin] fix libcompiler_rt.dylib build 2015-05-20 22:37:46 +00:00
debuginfo-tests
libclc Use a more accurate implementation for exp 2015-05-13 03:55:09 +00:00
libcxx Start a to-do list for libc++ 2015-05-20 17:39:54 +00:00
libcxxabi LIBCXXABI_LIBUNWIND_INCLUDES is already set before calling find_path, and find_path will not update it. 2015-05-09 21:03:01 +00:00
libunwind Code cleanup: Remove duplicated line. 2015-05-17 13:49:18 +00:00
lld [LLD] Make lastOrdinal atomic to avoid race conditions. 2015-05-20 23:44:37 +00:00
lldb Fix the logic in DynamicLoaderMacOSXDYLD::Clear that would only remove the old dyld notification 2015-05-21 00:27:01 +00:00
llgo benchcomp: Add macho_symsizes mode for comparing Mach-O object symbol sizes. 2015-05-12 22:14:26 +00:00
llvm AsmPrinter: Compute absolute label difference directly 2015-05-21 02:41:23 +00:00
openmp Change CMake variable prefix to LIBOMP 2015-05-20 22:33:24 +00:00
polly Add diagnostic for unsigned integer comparisions 2015-05-20 15:37:11 +00:00