On Wed, Jul 25, 2012 at 2:23 PM, Allan Sandfeld Jensen
<carew...@gmail.com> wrote:
> 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?

The attribute doesn't work in the face of inlining and generally was designed
for debugging, not for controlling things like you do.

Richard.

> Best regards
> `Allan

Reply via email to