[all-commits] [llvm/llvm-project] c830d5: [HIP] Enable -amdgpu-internalize-symbols

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Thu Jun 18 13:35:23 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c830d517b4e46abb617a80b3967b26546370c928
      https://github.com/llvm/llvm-project/commit/c830d517b4e46abb617a80b3967b26546370c928
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2020-06-18 (Thu, 18 Jun 2020)

  Changed paths:
    M clang/lib/Driver/ToolChains/HIP.cpp
    M clang/test/Driver/hip-link-save-temps.hip
    M clang/test/Driver/hip-save-temps.hip
    M clang/test/Driver/hip-toolchain-no-rdc.hip
    M clang/test/Driver/hip-toolchain-rdc-separate.hip
    M clang/test/Driver/hip-toolchain-rdc.hip

  Log Message:
  -----------
  [HIP] Enable -amdgpu-internalize-symbols

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.

Differential Revision: https://reviews.llvm.org/D81959




More information about the All-commits mailing list