Signed overflow optimization hazards in the kernel
Signed overflow optimization hazards in the kernel
Posted Aug 21, 2012 14:30 UTC (Tue) by daglwn (guest, #65432)In reply to: Signed overflow optimization hazards in the kernel by jezuch
Parent article: Signed overflow optimization hazards in the kernel
> but then, HPC code relies more on optimization by hand and leaves little
> to the compiler, as I understand it)
> to the compiler, as I understand it)
Not true. The Intel compiler, for example, will vectorize its brains out automatically.
A code using lots of non-restrict pointers will certainly be difficult to vectorize. Such code can sometimes be auto-parallelized but I don't believe gcc has that capability.
gcc's vectorization is also pretty weak, though it is getting better. That may be part of what you're seeing.
