http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50661
--- Comment #6 from Marc Glisse <marc.glisse at normalesup dot org> 2011-10-08 10:59:31 UTC --- (In reply to comment #5) > The analogy with copying and traits is enticing, but before reading Marc's > message, I wondered: for pointers, which kind of improvement are we talking > about? Comparing 64 bits at a time in a tight loop doesn't seem so bad... glibc uses SSE2 to work with 128 bits (but it is a bit more than a simple comparison in this case) and the hand-written asm might be a bit better than what gcc generates. My suggestion about traits is actually not such a good idea, since comparison operators are not generated by the compiler for non-builtin types.