This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Extracting live registers
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Paulo Matos <pmatos@linki.tools>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 7 Nov 2018 13:27:43 -0600
- Subject: Re: Extracting live registers
- References: <92eede92-8945-acb9-0230-63c9a928188d@linki.tools> <20181106234001.GG5994@gate.crashing.org> <98189988-e84a-1e49-ca4b-971f977d22c3@linki.tools>
On Wed, Nov 07, 2018 at 08:52:15AM +0100, Paulo Matos wrote:
> On 07/11/2018 00:40, Segher Boessenkool wrote:
> > -fdump-rtl-alignments[-all] is the last dump with all that information I
> > think. This one also has all this info without -all it seems. With -all
> > it shows it interleaving the RTL dump as well, which may or may not be
> > handy for you.
>
> Thanks, however it provides no correspondence to the set of asm
> instructions in the basic block. After you mentioned
> -fdump-rtl-alignments, I tried a few related flags and hit upon what I
> thought would work: -dA and -dP, but unfortunately these don't output
> live out information per basic block so it's not helpful for my
> application. It would be great if -dA or -dP would show live out info as
> well, but that doesn't seem to be the case at the moment.
Sure, it shows the register information at the edges of basic blocks
only. This is what you asked for btw ;-)
(The per-instruction info isn't readily available, and none of this is
available in the final passes).
Segher