[Gllug] code optimisations

Rich Walker rw at shadow.org.uk
Wed Mar 23 14:15:40 UTC 2005


Chris Ball <chris at void.printf.net> writes:

[snip useful bit]
>
>> But it's ... interesting ... to communicate to a C compiler that the
>> second optimisation is valid. If you did:
>
> Quite.  The compiler can't always know that there's no data dependency 
> inside the loop.  The current plan for autovect-branch is to control 
> the vectorizer with a #pragma (which is apparently how icc does it).

I thought there was a preference not to use #pragma ("it's irredeemably
broken")? Or has this changed?

cheers, Rich.

-- 
rich walker         |  Shadow Robot Company | rw at shadow.org.uk
technical director     251 Liverpool Road   |
need a Hand?           London  N1 1LX       | +UK 20 7700 2487
www.shadow.org.uk/products/newhand.shtml
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list