[PATCH] D57416: [AMDGPU] Support emitting GOT relocations for function calls
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 31 19:54:23 PST 2019
arsenm added inline comments.
================
Comment at: lib/Target/AMDGPU/SIISelLowering.cpp:3998
bool SITargetLowering::shouldEmitGOTReloc(const GlobalValue *GV) const {
- return (GV->getType()->getAddressSpace() == AMDGPUAS::GLOBAL_ADDRESS ||
+ return (GV->getValueType()->isFunctionTy() ||
+ GV->getType()->getAddressSpace() == AMDGPUAS::GLOBAL_ADDRESS ||
----------------
Can you add a comment here
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57416/new/
https://reviews.llvm.org/D57416
More information about the llvm-commits
mailing list