This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Force inlining if LDS global address is used
ClosedPublic

Authored by arsenm on Jul 6 2018, 10:15 AM.

Details

Summary

These won't work for the forseeable future. These aren't allowed
from OpenCL, but IPO optimizations can make them appear.

Also directly set the attributes on functions, regardless
of the linkage rather than cloning functions like before.

Diff Detail

Event Timeline

arsenm created this revision.Jul 6 2018, 10:15 AM
rampitec added inline comments.Jul 9 2018, 10:37 AM
lib/Target/AMDGPU/AMDGPUAlwaysInlinePass.cpp
73

Why was it cloned and why is it dropped now?

arsenm added inline comments.Jul 9 2018, 10:55 AM
lib/Target/AMDGPU/AMDGPUAlwaysInlinePass.cpp
73

I have no idea why this was ever cloned. I think I tried to fix that once before, and had some issue which I didn’t encounter this time. It was more inconvenient to maintain the weird behavior now.

This also improves the call related error messages since it refers to the actual name without a number appended

This revision is now accepted and ready to land.Jul 9 2018, 11:52 AM
arsenm closed this revision.Jul 9 2018, 12:30 PM

r336587