Re: Software to rearrange loops



Horacio wrote:
> Hi,
>
> do you know programs to work with loops, and rearrange them to obtain new
> ones in a similar fashion that zero-x beat creator ?
>
I do not know anything about zero-x beat creator, but I wrote the part of
the optimizer for the AT&T C compiler that did loop-invariant code motion;
i.e., it noticed if you were computing some invariant quantity in a loop and
moved the computation out of the loop. If necessary, it did transformation
of variables to make this possible.

Since I did this in the mid 1980s, I have little doubt that modern compilers
do this by now too.

--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key: 9A2FC99A Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 13:30:00 up 10 days, 4:57, 5 users, load average: 4.30, 4.18, 4.09
.



Relevant Pages

  • Re: Table.Compute Woes (URGENT)
    ... It is like the loop is wrong. ... Jay, if you need a data sample to look at that I am seeing it is at ... > For example in the above expression you are computing a value, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Uncomputable Natural Numbers
    ... Well, yes, there are some TMs that loop within a finite ... The language of representations of TMs ... computing 3 or computing 69 or computing 142857 or computing ... always be an infinite number of finite positions ...
    (sci.logic)
  • Re: Lamberts W function question
    ... Please find below a visual script for computing LambertW_Rin the real ... This script can be included in Excel as a macro. ... Loop ...
    (sci.math.symbolic)
  • Re: find out the problem
    ... > Anyway, computing the square root normally involves branches, at least to ... you can unroll the loop to any desired precision (as I ... Newton-Raphson iteration, so repeating it 128 times should be sufficient ...
    (comp.lang.c)
  • Re: PLEEEEASE HELP
    ... message sayin invalid number. ... Then the while loop will force ... Yes, you will exit, never having computed y = asin. ... so im not computing y what im tryin to figure out is ...
    (comp.soft-sys.matlab)