[PATCH] D84360: [LLD][PowerPC] Implement GOT to PC-Rel relaxation

Nemanja Ivanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 18:18:13 PDT 2020


nemanjai updated this revision to Diff 283464.
nemanjai added a comment.
Herald added a subscriber: dang.

- Move implementation completely into LLD
- Add option to disable the optimization
- Handle computation of the total offset when the access instruction has a non-zero displacement
- Add tests with the new option as well as a test with non-zero displacement on the access instructions


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84360/new/

https://reviews.llvm.org/D84360

Files:
  lld/ELF/Arch/PPC64.cpp
  lld/ELF/Config.h
  lld/ELF/Driver.cpp
  lld/ELF/InputSection.cpp
  lld/ELF/Options.td
  lld/ELF/Relocations.h
  lld/test/ELF/Inputs/ppc64-got-to-pcrel-relaxation-def.s
  lld/test/ELF/ppc64-got-to-pcrel-relaxation.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84360.283464.patch
Type: text/x-patch
Size: 25475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200806/aa388905/attachment.bin>


More information about the llvm-commits mailing list