[all-commits] [llvm/llvm-project] cac068: [HIP] Make sure, unused hip-pinned-shadow global v...
Mahesha S via All-commits
all-commits at lists.llvm.org
Tue Mar 3 21:24:52 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: cac068600e55e489844156d3581b61eeecee7d4e
https://github.com/llvm/llvm-project/commit/cac068600e55e489844156d3581b61eeecee7d4e
Author: hsmahesha <mahesha.comp at gmail.com>
Date: 2020-03-04 (Wed, 04 Mar 2020)
Changed paths:
M clang/lib/CodeGen/CodeGenModule.cpp
M clang/lib/CodeGen/CodeGenModule.h
M clang/test/CodeGenCUDA/hip-pinned-shadow.cu
Log Message:
-----------
[HIP] Make sure, unused hip-pinned-shadow global var is kept within device code
Summary:
hip-pinned-shadow global var should remain in the final code object irrespective
of whether it is used or not within the code. Add it to used list, so that it
will not get eliminated when it is unused.
Reviewers: yaxunl, tra, hliao
Reviewed By: yaxunl
Subscribers: hliao, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D75402
More information about the All-commits
mailing list