This is the mail archive of the gcc-patches@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: [tree-ssa] Copy propagation [patch]


Op za 01-03-2003, om 01:45 schreef law at redhat dot com:
> In message <20030301002257 dot GA27233 at tornado dot toronto dot redhat dot com>, Diego Novillo w
> rites:
>  >I finally found time to adapt aldyh's copy propagation pass
>  >(http://gcc.gnu.org/ml/gcc-patches/2002-11/msg01529.html).  Not
>  >surprisingly, this patch looks quite different from the original.
>  >The original implementation was done before we rewrote the base
>  >infrastructure.
---- 8< ----
> FWIW, you can do this essentially for free while building the SSA
> form, along with value numbering and simple copy propagations.  In
> addition to being effectively free, you also get to cut down on the
> amount of code all the other SSA opts ever see.

You can cut down the copies during SSA form building, but we would still
need this as a separate pass to cleanup the garbage that PRE (and later
on GVN and VRP) may leave behind.

Greetz
Steven



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