This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Handle aliases in AMDGPUAlwaysInlinePass
ClosedPublic

Authored by nhaustov on Aug 30 2016, 3:15 AM.

Details

Summary

Simply replace usage of aliases to functions with aliasee.
This came up when bitcode linking to builtin library and
calls to aliases not being resolved.

Also made minor improvements to existing test.

Diff Detail

Event Timeline

nhaustov updated this revision to Diff 69660.Aug 30 2016, 3:15 AM
nhaustov retitled this revision from to AMDGPU/SI: Handle aliases in AMDGPUAlwaysInlinePass.
nhaustov updated this object.
nhaustov added a subscriber: rampitec.
arsenm accepted this revision.Aug 30 2016, 10:09 AM
arsenm added a reviewer: arsenm.

LGTM. Can you also add a test which errors on an alias that is a constantexpr?

This revision is now accepted and ready to land.Aug 30 2016, 10:09 AM
This revision was automatically updated to reflect the committed changes.

LGTM. Can you also add a test which errors on an alias that is a constantexpr?

Why would it error? It simply skips everything that is not alias to function.