This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Extracting live registers


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]