GIMPLE pass - Assignment evaluation
Sandeep K Chaudhary
Tue Dec 17 07:26:00 GMT 2013
Thank you so much, Prof. Khedkar !
I will go through the slides and other resources that you pointed out.
GRC workshops/tutorials are great. These helped me get started with
GCC when I knew almost nothing about GCC internals.
I will get back with specific queries (if any) after going through these.
Thanks and regards,
On Tue, Dec 17, 2013 at 1:41 AM, Uday P. Khedker <firstname.lastname@example.org> wrote:
> You may also want to go through the slides at
> In particular,
> may be of help.
> Unfortunately there is some problem with playing the videos of the lectures
> (http://www.cse.iitb.ac.in/grc/gcc-workshop-12/index.php?page=videos) but we
> are working on that.
> Uday Khedker.
> Sandeep K Chaudhary wrote, On Tuesday 17 December 2013 11:54 AM:
>> Thank you so much for the reply, David !
>> I am not sure where exactly my pass gets invoked. I will try to find it.
>> But the pass get invoked somewhere in the GIMPLE stage as shown in the
>> GCC architecture.
>> How is it that one can dictate where the pass can be invoked? Can you
>> please provide some pointers/links about this?
>> But looking at the GCC architecture, I can see that the
>> optimization passes come into picture only after GIMPLE and SSA stage.
>> I dumped the IR and other related files using -fdump-tree-all with
>> optimization flag -O1, and saw that the assignments have not been
>> evaluated for test.c.004t.gimple as well as test.c.018t.ssa.
>> Also, in test.c.025t.forwprop1 and test.c.029t.copyprop1, they totally
>> get rid of everything in the assignments i.e. they only have the final
>> evaluation of the variables which is not what I want as I need
>> evaluation for individual statements.
>>  provides a nice diagrammatic understanding of the relative
>> invocations of GCC opt passes. It is quite helpful for understanding
>> the relative positions of the passes.
>> Thanks and regards,
Thanks and regards,
Sandeep K Chaudhary.
More information about the Gcc-help