Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Clang emits a warning if you ask it to vectorize a loop and it can't; you can then promote that to an error. But even if the loop vectorizes, that doesn't mean that it vectorizes in the optimal way - my understanding is that pros write their loops with intrinsics specifying the operations they want for this reason.

https://godbolt.org/#z:OYLghAFBqd5QCxAYwPYBMCmBRdBLAF1QCcAaP...



Warn-to-error promotion is a good point. I kind of wish something like this would exist on the language level.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: