3 ms·
https://gcc.gnu.org/onlinedocs/gcc/Loop-Specific-Pragmas.html https://gcc.gnu.org/onlinedocs/gcc/Loop-Specific-Pragmas.htm... The #pragma GCC ivdep annotation
by Conscat 3y ago
https://gcc.gnu.org/onlinedocs/gcc/Loop-Specific-Pragmas.html https://gcc.gnu.org/onlinedocs/gcc/Loop-Specific-Pragmas.htm...
The #pragma GCC ivdep annotation also enables this in loops. C23 also has the [[unsequenced]] attribute, which supports pointer arguments for optimizations like these, unlike [[gnu::const]].