aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRong Xu <xur@google.com>2021-06-15 12:32:03 -0700
committerRong Xu <xur@google.com>2021-06-15 14:51:27 -0700
commit434fed5aff5e62460e2e984c7cc2674c12779b1e (patch)
treea935cfd6c1f0d42b2dcb4f3d7f47ed6d737584a1 /flang/lib/Frontend/CompilerInvocation.cpp
parentcfb96d845a684a5c567823dbe2aa4392937ee979 (diff)
downloadllvm-434fed5aff5e62460e2e984c7cc2674c12779b1e.zip
llvm-434fed5aff5e62460e2e984c7cc2674c12779b1e.tar.gz
llvm-434fed5aff5e62460e2e984c7cc2674c12779b1e.tar.bz2
[SampleFDO] Using common linkage for the discriminator flag variable
We create flag variable "__llvm_fs_discriminator__" in the binary to indicate that FSAFDO hierarchical discriminators are used. This variable might be GC'ed by the linker since it is not explicitly reference. I initially added the var to the use list in pass MIRFSDiscriminator but it did not work. It turned out the used global list is collected in lowering (before MIR pass) and then emitted in the end of pass pipeline. In this patch, we use a "common" linkage for this variable so that it will be GC'ed by the linker. Differential Revision: https://reviews.llvm.org/D103988
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions