[PATCH] [mips] Add the following MIPS options that control	gp-relative addressing of small data items: -mgpopt,	-mlocal-sdata, -mextern-sdata.
    Sasa Stankovic 
    Sasa.Stankovic at imgtec.com
       
    Tue Aug 19 10:40:02 PDT 2014
    
    
  
Fixed the bug in function MipsTargetObjectFile::getSectionForConstant by using call to IsConstantInSmallSection instead of IsInSmallSection. Changed the patch to handle defaults for -mgpopt/-mips-ssection-threshold the same way as the defaults for -mgpopt/-G in gcc.
http://reviews.llvm.org/D4903
Files:
  lib/Target/Mips/MipsISelLowering.cpp
  lib/Target/Mips/MipsISelLowering.h
  lib/Target/Mips/MipsSubtarget.cpp
  lib/Target/Mips/MipsSubtarget.h
  lib/Target/Mips/MipsTargetObjectFile.cpp
  lib/Target/Mips/MipsTargetObjectFile.h
  test/CodeGen/Mips/2008-08-07-CC.ll
  test/CodeGen/Mips/gprel.ll
  test/CodeGen/Mips/mips64-f128.ll
  test/CodeGen/Mips/optimize-pic-o0.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4903.12672.patch
Type: text/x-patch
Size: 24272 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140819/a984a85c/attachment.bin>
    
    
More information about the llvm-commits
mailing list