summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2017-06-21 06:39:42 +0000
committerDean Michael Berris <dberris@google.com>2017-06-21 06:39:42 +0000
commit28ecff5cf164167f5bbb374a0f1008a15c9b90a3 (patch)
treef8992cc52834637db25360ddea271e1477df4caf /llvm/lib/Analysis/ScalarEvolution.cpp
parent0b0dc57dd88d99257fcc0d4e206e2fc60dba4bd3 (diff)
downloadbcm5719-llvm-28ecff5cf164167f5bbb374a0f1008a15c9b90a3.tar.gz
bcm5719-llvm-28ecff5cf164167f5bbb374a0f1008a15c9b90a3.zip
[XRay] Reduce synthetic references emitted by XRay
Summary: When we're building with XRay instrumentation, we use a trick that preserves references from the function to a function sled index. This index table lives in a separate section, and without this trick the linker is free to garbage-collect this section and all the segments it refers to. Until we're able to tell the linkers to preserve these sections, we use this reference trick to keep around both the index and the entries in the instrumentation map. Before this change we emitted both a synthetic reference to the label in the instrumentation map, and to the entry in the function map index. This change removes the first synthetic reference and only emits one synthetic reference to the index -- the index entry has the references to the labels in the instrumentation map, so the linker will still preserve those if the function itself is preserved. This reduces the amount of synthetic references we emit from 16 bytes to just 8 bytes in x86_64, and similarly to other platforms. Reviewers: dblaikie Subscribers: javed.absar, kpw, pelikan, llvm-commits Differential Revision: https://reviews.llvm.org/D34340 llvm-svn: 305880
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud