OSDN Git Service

AMDGPU: Use a custom areInlineCompatible
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 7 Aug 2017 17:08:44 +0000 (17:08 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 7 Aug 2017 17:08:44 +0000 (17:08 +0000)
commita4262847c8fb1bfadfbec43e05a739c83431187f
tree61ddbfae912e7e72ecb798dc10059904e18c8958
parente90e1d3d1837b2a694b9247e05ce21c3eac2337a
AMDGPU: Use a custom areInlineCompatible

Fixes not inlining OpenCL library functions on AMDGPU,
which don't have an explicitly set target-cpu.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310269 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h
test/Transforms/Inline/AMDGPU/inline-target-cpu.ll [new file with mode: 0644]
test/Transforms/Inline/AMDGPU/lit.local.cfg [new file with mode: 0644]