[llvm-commits] [PATCH][Review Please] Optimize ARM Position Independent Code Generation

Renato Golin rengolin at systemcall.org
Wed Aug 1 06:22:19 PDT 2012


Hi Yin,

You shouldn't activate the flag by default, at least not for now until
we can make sure that it's working for most cases. That would also
leave the tests unchanged for now.

--renato

On 30 July 2012 18:55, Yin Ma <yinma at codeaurora.org> wrote:
> Hi
>
> Currently LLVM ARM backend is still using the x86 way to generate position
> independent code. The algorithm retrieves the pointer of global offset table
> at first. However, GCC has been using the label relative offset to computer
> position independent code. The GCC way results smaller code size in ARM
> architecture. This patch is to implement GCC way to generate position
> independent code.
>
> In the attachment.
> pic.diff is the code patch
> the rest of four files are the test validation results before and after code
> changed
>
> Please give a review
>
>
>
> Thanks,
>
>
>
>                     Yin
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



-- 
cheers,
--renato

http://systemcall.org/



More information about the llvm-commits mailing list