[PATCH] D47070: [CUDA] Upgrade linked bitcode to enable inlining

Jonas Hahnfeld via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 18 08:01:08 PDT 2018


Hahnfeld created this revision.
Hahnfeld added reviewers: tra, jlebar.
Herald added a subscriber: cfe-commits.

Revision https://reviews.llvm.org/rC329829 added the architecture to "target-features". This
prevents inlining of previously generated bitcode because the
feature sets don't match. Thus duplicate the information from
"target-cpu" to avoid writing special cases in the analysis.

I'm not sure if that will save us in the long term because inlining
will break again when we add new features. Additionally, using later
CUDA versions might raise the PTX version which is also a feature...


Repository:
  rC Clang

https://reviews.llvm.org/D47070

Files:
  lib/CodeGen/CGCall.cpp
  test/CodeGenCUDA/Inputs/device-code-2.ll
  test/CodeGenCUDA/Inputs/device-code.ll
  test/CodeGenCUDA/link-device-bitcode.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47070.147510.patch
Type: text/x-patch
Size: 4335 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180518/63415be9/attachment.bin>


More information about the cfe-commits mailing list