This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/19719] missed optimization on boolean operation with boolean arguments
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 May 2005 17:50:01 -0000
- Subject: [Bug tree-optimization/19719] missed optimization on boolean operation with boolean arguments
- References: <20050131061122.19719.yuri@tsoft.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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