Implementing the pass for reaching definition analysis in gcc

Diego Novillo dnovillo@google.com
Wed Oct 14 18:20:00 GMT 2009


[ Re-directed to gcc-help.  Much easier to get help this way. ]

On Wed, Oct 14, 2009 at 09:41, utkarsh dubey <dubey.utkarsh@gmail.com> wrote:
> hi
>
> i am working on a project in which i have to implement the passes for
> reaching definition analysis,

Reaching definitions is done implicitly when computing the SSA form.
For each SSA name, simply traverse its immediate uses using
FOR_EACH_IMM_USE_STMT.

> constant propagation,

<src>/gcc/tree-ssa-ccp.c

> copy propagation

<src>/gcc/tree-ssa-copy.c

> and constant folding.

<src>/gcc/fold-const.c  (helper routines used by all the optimizers
and front ends).

> Till now i have
> just been able to build GCC on my
> system.But now i have no clue from where to start. If anyone could please
> help me that how can i get the source codes
> for these passes so that i can go through them and then try to implement it
> myself.
> Please provide some material to start this project.....
>
>
> with regards
> Utkarsh
> M.tech,
> Department of computer science and engineering
> Indian Institute of Technology Kanpur,India
>



More information about the Gcc-help mailing list