Do not generate runtime init code if we don't have anything to init.
Details
Details
Diff Detail
Diff Detail
- Repository
 - rL LLVM
 
Paths 
  |  Differential  D17780  
[CUDA] Do not generate unnecessary runtime init code. ClosedPublic Authored by tra on Mar 1 2016, 1:28 PM. 
Details Summary Do not generate runtime init code if we don't have anything to init. 
Diff Detail 
 Event Timelinetra updated this object. tra added a parent revision: D17779: [CUDA] Emit host-side 'shadows' for device-side global variables. This revision is now accepted and ready to land.Mar 1 2016, 5:27 PM Closed by commit rL262499: [CUDA] Do not generate unnecessary runtime init code. (authored by tra).  ·  Explain WhyMar 2 2016, 10:33 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 49646 cfe/trunk/lib/CodeGen/CGCUDANV.cpp
 cfe/trunk/test/CodeGenCUDA/device-stub.cu
  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||