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

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 1 10:42:22 PDT 2018


tra added a comment.

IMO overriding TargetTransformInfo::areInlineCompatible to always return true on NVPTX is what we want to do instead of upgrading everything else.
AFAICT, on NVPTX there's no reason to prevent inlining due to those attributes -- we'll never generate code, nor will we ever execute it on any other GPU than we're currently compiling for.

This should get you going until I figure out how to have target-specific builtins without sticking target-cpu and target-features attributes on everything.


Repository:
  rC Clang

https://reviews.llvm.org/D47070





More information about the cfe-commits mailing list