[PATCH] D81959: [HIP] Enable -amdgpu-internalize-symbols
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 16 12:40:00 PDT 2020
yaxunl created this revision.
yaxunl added reviewers: arsenm, rampitec, tra, ashi1.
Herald added subscribers: t-tye, tpr, dstuttard, wdng, kzhuravl.
Enable -amdgpu-internalize-symbols to eliminate unused functions and global variables
for whole program to speed up compilation and improve performance.
For -fno-gpu-rdc, -amdgpu-internalize-symbols is passed to clang -cc1.
For -fgpu-rdc, -amdgpu-internalize-symbols is passed to lld.
https://reviews.llvm.org/D81959
Files:
clang/lib/Driver/ToolChains/HIP.cpp
clang/test/Driver/hip-link-save-temps.hip
clang/test/Driver/hip-save-temps.hip
clang/test/Driver/hip-toolchain-no-rdc.hip
clang/test/Driver/hip-toolchain-rdc-separate.hip
clang/test/Driver/hip-toolchain-rdc.hip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81959.271168.patch
Type: text/x-patch
Size: 8933 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200616/24a49e29/attachment-0001.bin>
More information about the cfe-commits
mailing list