This is an archive of the discontinued LLVM Phabricator instance.

[mips] Lift the assertion on the types that can be used with MipsGPRel
ClosedPublic

Authored by sdardis on Aug 8 2017, 9:17 AM.

Details

Summary

Post commit review of 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).

Event Timeline

sdardis created this revision.Aug 8 2017, 9:17 AM
This revision is now accepted and ready to land.Aug 9 2017, 2:11 PM
This revision was automatically updated to reflect the committed changes.