#pragma clang loop - documentation

Dmitri Gribenko gribozavr at gmail.com
Mon Jun 16 11:23:05 PDT 2014


On Mon, Jun 16, 2014 at 7:10 PM, Tyler Nowicki <tnowicki at apple.com> wrote:
> Hi Dmitri, Aaron,
>
> Thanks for the reviews. I tried to address both your suggestions. Let me know if the changes work for you.

+If an optimization cannot be applied any hints that apply to it will
be ignored.
+For example, the hint ``vectorize_width(4)`` is ignored if the loop is not
+proven safe to vectorize.

LGTM!

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list