IPA Constant Propagation Optimization

Razya Ladelsky RAZYA@il.ibm.com
Sun May 16 09:56:00 GMT 2004


Hello,

> Does this also include function specialization/cloning if the function 
is
> not always, but very often, invoked with the same constant argument?

Not for the first version. Possible in the future.

> Does the function tree have to be in some specific form, ie. do you
> expect every function tree to be still in SSA form?  At what point
> in the compilation process would this pass operate?  Right now we do
> not have any optimizers running before call graph optimizations, but
> I suppose you'll want to run a few optimizers (DOM, DCE,CCP) on each
> function tree before IPA.

For the IPA analysis, we need to have all the application's
methods in some intermediate representation at the same time.
For the moment this intermodule infrastructure exists only in parse 
tree representation. IPA constant propagation will be performed on 
all parse trees. Then the rest of compilation will be performed
one method at a time.

Razya and Mircea




More information about the Gcc mailing list