News for hackers. Stuff that matters.
Re:Optimizing compilers reload vector constants needlessly by Someone on Tuesday December 06, 2022 @06:36PM (#33888643)
I know both gcc (https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html) and clang (https://clang.llvm.org/docs/LanguageExtensions.html#vectors-...) have vector extensions that are intended to make it easier to write SIMD code (you can write c = a + b; instead of having to know the specific vector instruction needed to add two vectors, for example), but don’t know how well these reach that goal.

Are these helpful, or not good enough to write performant vector code?

Re:Optimizing compilers reload vector constants needlessly by an1sotropy on Tuesday December 06, 2022 @08:02PM (#33889390)
I’ll try them!