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/19719] missed optimization on boolean operation with boolean arguments


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-08 17:49 -------
On the mainline we get:
        xorl    %eax, %eax
        movzbl  8(%esp), %edx
        cmpb    $0, 4(%esp)
        je      .L4
        testb   %dl, %dl
        setne   %al
.L4:
        movzbl  %al, %eax
        ret

One thing to improve this is to change:
        testb   %dl, %dl
        setne   %al
to:
        movl    %edx, %eax

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19719


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