[PATCH] D36472: [mips] Lift the assertion on the types that can be used with MipsGPRel

Simon Dardis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 8 09:17:09 PDT 2017


sdardis created this revision.
Herald added a subscriber: arichardson.

Post commit review of https://reviews.llvm.org/rL308619 highlighted the need for handling N64
with -fno-pic. Testing reveale a stale assert when generating a GP
relative addressing mode.

This patch removes that assert and adds the necessary patterns for
MIPS64 to perform gp relative addressing with -fno-pic
(and the implicit -mno-abicalls + -mgpopt).


Repository:
  rL LLVM

https://reviews.llvm.org/D36472

Files:
  lib/Target/Mips/Mips64InstrInfo.td
  lib/Target/Mips/MipsISelLowering.cpp
  lib/Target/Mips/MipsISelLowering.h
  lib/Target/Mips/MipsInstrInfo.td
  test/CodeGen/Mips/2008-07-15-SmallSection.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36472.110211.patch
Type: text/x-patch
Size: 6787 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170808/df0f3d57/attachment.bin>


More information about the llvm-commits mailing list