AMDGPU/SI: Handle aliases in AMDGPUAlwaysInlinePass
authorNikolay Haustov <Nikolay.Haustov@amd.com>
Wed, 31 Aug 2016 11:18:33 +0000 (11:18 +0000)
committerNikolay Haustov <Nikolay.Haustov@amd.com>
Wed, 31 Aug 2016 11:18:33 +0000 (11:18 +0000)
commiteba808957e15290e4ade5d3a80c31c0e36bdd7bd
tree8e4eb828e34468caeba5434dc55394f10d0c1466
parent75b1fb9b9e22f7f8f76c89982674761c734c390b
AMDGPU/SI: Handle aliases in AMDGPUAlwaysInlinePass

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.

Reviewers: tstellarAMD, alex-t, vpykhtin

Subscribers: arsenm, wdng, rampitec

Differential Revision: https://reviews.llvm.org/D24023

llvm-svn: 280221
llvm/lib/Target/AMDGPU/AMDGPUAlwaysInlinePass.cpp
llvm/test/CodeGen/AMDGPU/inline-calls.ll