Problems with pragma and attribute optimize.
Allan Sandfeld Jensen
carewolf@gmail.com
Wed Jul 25 12:23:00 GMT 2012
Hi,
I have been experimenting with marking specific functions to be auto-
vectorized in GCC, but have had problems getting it to work.
It seems the optimize attribute works sometimes, but only if the function it
is used on is not static, but pragma optimize never seems to work.
See the attached test-case. If you compile it with -ftree-vectorizer-verbose,
you will see that only the first function is vectorized, but the two last are
not.
Anyone know what is wrong here?
Best regards
`Allan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vectorize-test.cpp
Type: text/x-c++src
Size: 878 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20120725/a956f9cc/attachment.bin>
More information about the Gcc
mailing list