[all-commits] [llvm/llvm-project] 675278: [HIP] Do not use llvm-link/opt/llc for -fgpu-rdc
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Mon Jun 15 18:09:54 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 6752786d657ae13ccccdf93e1fa45df5277052ab
https://github.com/llvm/llvm-project/commit/6752786d657ae13ccccdf93e1fa45df5277052ab
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2020-06-15 (Mon, 15 Jun 2020)
Changed paths:
M clang/lib/Driver/Driver.cpp
M clang/lib/Driver/ToolChains/AMDGPU.h
M clang/lib/Driver/ToolChains/HIP.cpp
M clang/lib/Driver/ToolChains/HIP.h
M clang/test/Driver/amdgpu-toolchain.c
M clang/test/Driver/hip-device-compile.hip
A clang/test/Driver/hip-link-save-temps.hip
M clang/test/Driver/hip-phases.hip
M clang/test/Driver/hip-rdc-device-only.hip
M clang/test/Driver/hip-save-temps.hip
M clang/test/Driver/hip-toolchain-no-rdc.hip
A clang/test/Driver/hip-toolchain-rdc-separate.hip
M clang/test/Driver/hip-toolchain-rdc.hip
Log Message:
-----------
[HIP] Do not use llvm-link/opt/llc for -fgpu-rdc
This patch is a follow up on https://reviews.llvm.org/D81627.
In addition to default -fno-gpu-rdc case, this patches let
HIP toolchain not use llvm-link/opt/llc to link device code
for -fgpu-rdc case. Instead, uses standard lto.
This will eliminate some redundant optimizations and speed
up the compilation/linking.
Differential Revision: https://reviews.llvm.org/D81861
More information about the All-commits
mailing list