diff options
author | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2020-06-09 15:02:53 -0400 |
---|---|---|
committer | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2020-06-15 18:55:01 -0400 |
commit | e8090d83fd92cc6a9d03b48c91f979bbfa6bb1fc (patch) | |
tree | 0046fea36b48832bc4031e1bd8b23b2b8ad6c905 /llvm/lib/Support | |
parent | 64ec505dd46832880350e8b45316eaed30b458dc (diff) | |
download | llvm-e8090d83fd92cc6a9d03b48c91f979bbfa6bb1fc.zip llvm-e8090d83fd92cc6a9d03b48c91f979bbfa6bb1fc.tar.gz llvm-e8090d83fd92cc6a9d03b48c91f979bbfa6bb1fc.tar.bz2 |
[HIP] Do not call opt/llc for -fno-gpu-rdc
Currently HIP toolchain calls clang to emit bitcode then calls opt/llc for device compilation for the default -fno-gpu-rdc
case, which is unnecessary since clang is able to compile a single source file to ISA.
This patch fixes the HIP action builder and toolchain so that the default -fno-gpu-rdc can be done like a canonical
toolchain, i.e. one clang -cc1 invocation to compile source code to ISA.
This can avoid unnecessary processes to speed up the compilation, and avoid redundant LLVM passes which are
performed in clang -cc1 and opt.
Differential Revision: https://reviews.llvm.org/D81627
Diffstat (limited to 'llvm/lib/Support')
0 files changed, 0 insertions, 0 deletions