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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to