This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Hack out noinline on functions using LDS globals
ClosedPublic

Authored by arsenm on Apr 2 2020, 9:03 AM.

Details

Reviewers
rampitec
yaxunl
Summary

This is a workaround for clang adding noinline to all functions at
-O0. Previously, we would just add alwaysinline, and the verifier
would complain about having both noinline and alwaysinline. We
currently can't truly codegen this case as a freestanding function, so
override the user forcing noinline.

Diff Detail

Event Timeline

arsenm created this revision.Apr 2 2020, 9:03 AM
This revision is now accepted and ready to land.Apr 2 2020, 10:37 AM