[PATCH] D42175: [AArch64][GlobalISel] Add isel support for global values in the large code model

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 06:17:37 PST 2018


aemerson created this revision.
aemerson added reviewers: kristof.beyls, dsanders, rogfer01.
Herald added subscribers: javed.absar, rovka, rengolin.

The large code model isn't properly handled for global values, for which we need to use the MOVZ/MOVK sequence of instructions to materialize the address with appropriate relocs on ELF, rather than the ADRP+ADD pair used for the small code model.

Fixes PR35958.


Repository:
  rL LLVM

https://reviews.llvm.org/D42175

Files:
  lib/Target/AArch64/AArch64InstructionSelector.cpp
  test/CodeGen/AArch64/GlobalISel/select-gv-cmodel-large.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42175.130160.patch
Type: text/x-patch
Size: 5940 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180117/f092b087/attachment.bin>


More information about the llvm-commits mailing list