diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2018-09-06 17:23:24 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2018-09-06 17:23:24 +0000 |
commit | df84dc6979fae8d8a9a3ea89d7cc2c83a5d9313d (patch) | |
tree | ec51b9b58eacacecee4759894d88ddf20bd8bc2e /llvm/lib | |
parent | f85e3910636c6ef1424194a1d1317c87aa07f7e1 (diff) | |
download | bcm5719-llvm-df84dc6979fae8d8a9a3ea89d7cc2c83a5d9313d.tar.gz bcm5719-llvm-df84dc6979fae8d8a9a3ea89d7cc2c83a5d9313d.zip |
AMDGPU: Remove old hack for function addresses
llvm-svn: 341567
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/AMDGPU/SIISelLowering.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp index 749a361b7c3..f62db083e4d 100644 --- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp +++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp @@ -2421,19 +2421,6 @@ SDValue SITargetLowering::LowerCall(CallLoweringInfo &CLI, ++NumTailCalls; } - if (GlobalAddressSDNode *GA = dyn_cast<GlobalAddressSDNode>(Callee)) { - // FIXME: Remove this hack for function pointer types after removing - // support of old address space mapping. In the new address space - // mapping the pointer in default address space is 64 bit, therefore - // does not need this hack. - if (Callee.getValueType() == MVT::i32) { - const GlobalValue *GV = GA->getGlobal(); - Callee = DAG.getGlobalAddress(GV, DL, MVT::i64, GA->getOffset(), false, - GA->getTargetFlags()); - } - } - assert(Callee.getValueType() == MVT::i64); - const SIMachineFunctionInfo *Info = MF.getInfo<SIMachineFunctionInfo>(); // Analyze operands of the call, assigning locations to each operand. |