order of optimizations

Ian Lance Taylor iant@google.com
Mon Apr 9 18:42:00 GMT 2007


"P. Pavan Kumar" <pavankumar@cse.iitb.ac.in> writes:

> Does the order of optimizations effects the generated code ?

Yes.

> If i want to change the order of optimizations then how it would it be
> possible ?

In general, yes.  You can't arbitrarily rearrange the passes.

> In which part of the gcc source code about the order of
> optimization passess are defined.

In passes.c.

> I want to know, what are the optimizations can be done on the RTL level.
> Is there any way to control the order of those optimizations.
> In which source file of gcc they are defined.

Same answers.

Ian



More information about the Gcc-help mailing list