[PATCH] D79864: [PowerPC] Add linker opt for PC Relative GOT indirect accesses

Stefan Pintilie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 07:00:32 PDT 2020


stefanp updated this revision to Diff 278461.
stefanp marked 2 inline comments as done.
stefanp added a comment.

Changed the way that the peephole finds candidates according to the suggestion by Nemanja.
Added/fixed some comments.
Cleaned up the testcase.


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

https://reviews.llvm.org/D79864

Files:
  llvm/include/llvm/MC/MCExpr.h
  llvm/lib/MC/MCExpr.cpp
  llvm/lib/Target/PowerPC/MCTargetDesc/PPCELFStreamer.cpp
  llvm/lib/Target/PowerPC/MCTargetDesc/PPCELFStreamer.h
  llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
  llvm/lib/Target/PowerPC/PPC.h
  llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
  llvm/lib/Target/PowerPC/PPCMCInstLower.cpp
  llvm/lib/Target/PowerPC/PPCPreEmitPeephole.cpp
  llvm/test/CodeGen/PowerPC/pcrel-call-linkage-with-calls.ll
  llvm/test/CodeGen/PowerPC/pcrel-got-indirect.ll
  llvm/test/CodeGen/PowerPC/pcrel-linkeropt.ll
  llvm/test/CodeGen/PowerPC/pcrel-relocation-plus-offset.ll
  llvm/test/CodeGen/PowerPC/pcrel-tail-calls.ll
  llvm/test/CodeGen/PowerPC/pcrel.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79864.278461.patch
Type: text/x-patch
Size: 42002 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200716/b9ada0c9/attachment.bin>


More information about the llvm-commits mailing list