This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/33291] [4.3 Regression] a+=2; a+=2 not simplified to a+=4; with -O3 (ok with gcc-4.2.1)
- From: "wouter dot vermaelen at scarlet dot be" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Sep 2007 12:11:40 -0000
- Subject: [Bug tree-optimization/33291] [4.3 Regression] a+=2; a+=2 not simplified to a+=4; with -O3 (ok with gcc-4.2.1)
- References: <bug-33291-8535@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from wouter dot vermaelen at scarlet dot be 2007-09-04 12:11 -------
Thanks for looking into this so quickly!
I confirm the problem is solved for the reduced testcase. However in my
original code the dead-store is not eliminated. Do you want me to file a
separate bug report for that?
....
mov (%rbx),%edx
movzbl %cl,%edi
lea 0x3(%rdx),%r8d
add $0x5,%edx
mov %r8d,(%rbx)
movzbl (%rsi,%rdi,1),%eax
mov %edx,(%rbx)
....
--
wouter dot vermaelen at scarlet dot be changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33291