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.
Paths
| Differential D39616
[AMDGPU] Remove hardcoded address space value from AMDGPULibFunc ClosedPublic Authored by yaxunl on Nov 3 2017, 1:22 PM.
Details Summary AMDGPULibFunc hardcodes address space values of the old address space mapping, This patch fixes that.
Diff Detail Event TimelineHerald added subscribers: t-tye, tpr, dstuttard and 4 others. · View Herald TranscriptNov 3 2017, 1:22 PM
This revision is now accepted and ready to land.Nov 3 2017, 9:02 PM Closed by commit rL317409: [AMDGPU] Remove hardcoded address space value from AMDGPULibFunc (authored by yaxunl). · Explain WhyNov 4 2017, 10:38 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 121581 lib/Target/AMDGPU/AMDGPULibCalls.cpp
lib/Target/AMDGPU/AMDGPULibFunc.h
lib/Target/AMDGPU/AMDGPULibFunc.cpp
test/CodeGen/AMDGPU/simplify-libcalls.ll
|
Why not to mask argument inside getAddrSpaceFromEPtrKind?