]> granicus.if.org Git - llvm/commit
[AMDGPU] Remove hardcoded address space value from AMDGPULibFunc
authorYaxun Liu <Yaxun.Liu@amd.com>
Sat, 4 Nov 2017 17:37:43 +0000 (17:37 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Sat, 4 Nov 2017 17:37:43 +0000 (17:37 +0000)
commit35934f8100acc605f9f938bc84c838c22390b01f
treec844187b598e6421fc703b59cd6f5ffecda7b1c8
parentdcf1ffe8a0867a311092f2379195e9b646e42c1d
[AMDGPU] Remove hardcoded address space value from AMDGPULibFunc

AMDGPULibFunc hardcodes address space values of the old address space mapping,
which causes invalid addrspacecast instructions and undefined functions in
APPSDK sample MonteCarloAsianDP.

This patch fixes that.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317409 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPULibCalls.cpp
lib/Target/AMDGPU/AMDGPULibFunc.cpp
lib/Target/AMDGPU/AMDGPULibFunc.h
test/CodeGen/AMDGPU/simplify-libcalls.ll