This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/33291] [4.3 Regression] a+=2; a+=2 not simplified to a+=4; with -O3 (ok with gcc-4.2.1)



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]