Go to file
Peter Collingbourne d4bff30370 DI: Reverse direction of subprogram -> function edge.
Previously, subprograms contained a metadata reference to the function they
described. Because most clients need to get or set a subprogram for a given
function rather than the other way around, this created unneeded inefficiency.

For example, many passes needed to call the function llvm::makeSubprogramMap()
to build a mapping from functions to subprograms, and the IR linker needed to
fix up function references in a way that caused quadratic complexity in the IR
linking phase of LTO.

This change reverses the direction of the edge by storing the subprogram as
function-level metadata and removing DISubprogram's function field.

Since this is an IR change, a bitcode upgrade has been provided.

Fixes PR23367. An upgrade script for textual IR for out-of-tree clients is
attached to the PR.

Differential Revision: http://reviews.llvm.org/D14265

llvm-svn: 252219
2015-11-05 22:03:56 +00:00
clang Fix incorrect status for P0012R1. 2015-11-05 21:42:32 +00:00
clang-tools-extra Refactor: Simplify boolean conditional return statements in clang-apply-replacements 2015-11-05 20:59:17 +00:00
compiler-rt [compiler-rt][aarch64] New tests for 128-bit floating-point builtins, fixes of tests and __fixuint 2015-11-05 18:36:42 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc integer: remove explicit casts from _MIN definitions 2015-10-06 19:12:12 +00:00
libcxx Mark LWG issue #2234. We already do this; no code change needed 2015-11-05 19:57:50 +00:00
libcxxabi Fix LIBCXXABI_HAS_NO_THREADS configuration. 2015-10-14 19:21:38 +00:00
libunwind Add FreeBSD _Unwind_Ptr typedef 2015-10-16 19:40:09 +00:00
lld These are the matching changes needed to the lld project for the changes to llvm 2015-11-05 19:25:47 +00:00
lldb Fix OS X tests. 2015-11-05 22:00:47 +00:00
llgo [llgo] irgen: always use TargetMachine's data layout 2015-09-25 06:28:14 +00:00
llvm DI: Reverse direction of subprogram -> function edge. 2015-11-05 22:03:56 +00:00
openmp Improve OMPT initialization code 2015-11-05 16:54:55 +00:00
polly ScopInfo: Allocate globally unique memory access identifiers 2015-11-05 20:15:37 +00:00