[RFC] Extension of SIMPLE for Fortran 95

Daniel Berlin dberlin@dberlin.org
Mon Jun 10 10:29:00 GMT 2002


On Monday, June 10, 2002, at 01:16  PM, Diego Novillo wrote:

> On Mon, 2002-06-10 at 12:52, Daniel Berlin wrote:
>
>> Then again, they also transform all for loops to whiles, and then the
>> whiles to if/gotos.
>>
> This also comes up every now and again.  Coalescing loop constructs into
> a single loop representation.  In principle, I would like to maintain at
> least FOR_STMT to facilitate high-level loop transformations (known
> bounds, controlling loop variable easy to spot).  In fact, I'd like to
> have a pass to canonicalize DO_STMT and WHILE_STMT into FOR_STMTs
> whenever possible.
I agree.
Did I mention the cuter part, that the IA-64 compiler actually rebuilds while loops from the if's/goto's about half way through optimization passes?
(The IA32 compiler doesn't).

>
> I intend to delay these decisions until we start building loop
> transformations.


>
> Diego.
>
>



More information about the Gcc mailing list