On Apr 22, 2014, at 12:07 PM, Hal Finkel <[email protected]> wrote:

> Hrmm; interesting. Is this the behavior we want? I'd be inclined to say that 
> the pragma should imply safety.

I prefer to implement ‘unsafe’ vectorization with a separate pragma keyword.  I 
would like to discourage users from using this option because it can break the 
correctness of their program, and I think that ’safe’ is a better default.  
Vectorizing a loop in an ‘unsafe’ mode adds a risk and marking the loop with 
the ‘unsafe’ keyword makes the decision explicit and documents.  
I think that it is reasonable to require users to write: #pragma vectorize 
unsafe width(4) …  

Thanks,
Nadav
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to