[PATCH, V3, #7 of 10], Implement PCREL_OPT relocation optimization

Segher Boessenkool segher@kernel.crashing.org
Tue Sep 3 22:56:00 GMT 2019


Hi!

On Mon, Aug 26, 2019 at 05:43:41PM -0400, Michael Meissner wrote:
> /* This file implements a RTL pass that looks for pc-relative loads of the
>    address of an external variable using the PCREL_GOT relocation and a single
>    load/store that uses that GOT pointer.

Does this work better than having a peephole for it?  Is there some reason
you cannot do this with a peephole?


Segher



More information about the Gcc-patches mailing list