kitaisreal added a comment.

It seems that maybe it is better to specify pragma like this, without 
`(enable)`.

  #pragma clang loop force_vectorize
  for (size_t i = 0; i < size; ++i) {
      sum += data[i];
  }

But maybe ability to enable or disable `force_vectorize` can be helpful if we 
will have pragma for code sections. That way client can disable force 
vectorization for specific loop.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156910/new/

https://reviews.llvm.org/D156910

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to