This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/42779] [C++0x] Variadic templates + lambdas = extremely poor code quality, __m128i and aliasing sucks
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jan 2010 21:08:49 -0000
- Subject: [Bug target/42779] [C++0x] Variadic templates + lambdas = extremely poor code quality, __m128i and aliasing sucks
- References: <bug-42779-17090@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from rguenth at gcc dot gnu dot org 2010-01-17 21:08 -------
If you fix that issue (simply remove all __may_alias__ attributes from
preprocessed source) you get
.L62:
addl $1, %edx
movdqa (%ebx,%eax), %xmm0
pand (%esi,%eax), %xmm0
movdqa %xmm0, (%edi,%eax)
addl $16, %eax
cmpl %edx, %ecx
jne .L62
for the innermost loop. Maybe not 100% perfect but reasonable (that's -O2).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42779