diff options
author | Quentin Colombet <quentin.colombet@gmail.com> | 2023-08-09 14:34:32 +0200 |
---|---|---|
committer | Quentin Colombet <quentin.colombet@gmail.com> | 2023-08-09 14:41:01 +0200 |
commit | bb206cb131226c375d0e09251e35a3d75dd3f06f (patch) | |
tree | f0f279d40729f3e18cba7a5dbf71154a182337b3 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | b27e08892f780105d1522dae025e13c418c8b3ab (diff) | |
download | llvm-bb206cb131226c375d0e09251e35a3d75dd3f06f.zip llvm-bb206cb131226c375d0e09251e35a3d75dd3f06f.tar.gz llvm-bb206cb131226c375d0e09251e35a3d75dd3f06f.tar.bz2 |
[NVPTX] Apply global var demotion to private symbols
When emitting the assembly we perform some late global variables demotion.
Prior to this patch, this optimization was only performed on variables with
the internal linkage whereas any local global variable can be demoted.
Fix that by using `hasLocalLinkage` instead of `hasInternalLinkage`.
Without this change, global variables with the `private` linkage wouldn't
be demoted.
Differential Revision: https://reviews.llvm.org/D154507
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions