On Wed, Nov 07, 2018 at 09:49:02PM +0100, Paulo Matos wrote:
> On 07/11/2018 20:27, Segher Boessenkool wrote:
> > Sure, it shows the register information at the edges of basic blocks
> > only.  This is what you asked for btw ;-)
> 
> True, but I need a way to map that information to the assembly
> instructions in the basic block. :)

With -dp you have the insn uids in the .s file, so you can match them up
with the RTL dumps.  You can use -dP as well if you like that better.

> I think it's not impossible with all
> that gcc provides, but there's certainly a fair amount of parsing of
> these files, which is not ideal given their format might change under my
> feet.

Yes, the dump files are not meant for this.  They aren't completely
parsable even.


Segher

Reply via email to