]> granicus.if.org Git - llvm/commit
[mips] Refine the condition for when to use CALL16 vs a GOT displacement.
authorSimon Dardis <simon.dardis@imgtec.com>
Tue, 27 Jun 2017 10:11:11 +0000 (10:11 +0000)
committerSimon Dardis <simon.dardis@imgtec.com>
Tue, 27 Jun 2017 10:11:11 +0000 (10:11 +0000)
commit349de318a781caadbd10f2dcefad7626add7fd26
tree5f6c6cec3fefbdab7ebe4add7eae89fb18578bde
parent99b52fe13c3b09fd06ce2da7234f2682a5644bd7
[mips] Refine the condition for when to use CALL16 vs a GOT displacement.

Borrow from the logic for 'jal' in MipsAsmParser::processInstruction
and add the extra condition of bypassing CALL16 if the destination symbol
is an ELF symbol with STB_LOCAL binding.

Patch by: John Baldwin

Reviewers: sdardis

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306387 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp