[llvm] r341567 - AMDGPU: Remove old hack for function addresses
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 6 10:23:24 PDT 2018
Author: arsenm
Date: Thu Sep 6 10:23:24 2018
New Revision: 341567
URL: http://llvm.org/viewvc/llvm-project?rev=341567&view=rev
Log:
AMDGPU: Remove old hack for function addresses
Modified:
llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp?rev=341567&r1=341566&r2=341567&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp Thu Sep 6 10:23:24 2018
@@ -2421,19 +2421,6 @@ SDValue SITargetLowering::LowerCall(Call
++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.
More information about the llvm-commits
mailing list