Am 03.08.2013 23:31, schrieb Sven Barth:
On 03.08.2013 22:50, Florian Klämpfl wrote:
Am 03.08.2013 17:19, schrieb Sven Barth:
On 03.08.2013 13:12, Florian Klämpfl wrote:

First, FPC does not loop unrolling by default, you need -Ooloopunroll,
second, the loop is relatively long, so let the compiler assume a long
pipeline with - Cppentium4


-Oopentium4 it is.

Are you sure that you don't mean -Oppentium4? The compiler complains
with —Oopentium4. And it doesn't change anything (also with
-Ooloopunroll) :(

There was indeed a mistake in optunroll.pas, -Oppentium4 -Ooloopunroll
should work now.

Jupp, it indeed works now. Now the compiler would "just" need to detect
that the for loop is basically only using constants and evaluate that at
compile time... but that's a wish for another day ;)

I think item 635365 of my todo list, the autovectorizer would solve it ;)

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to