This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/3995: i386 optimisation: joining tests
- From: sayle at gcc dot gnu dot org
- To: 105309-quiet at bugs dot debian dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, herbert at gondor dot apana dot org dot au, nobody at gcc dot gnu dot org
- Date: 7 May 2002 03:40:17 -0000
- Subject: Re: optimization/3995: i386 optimisation: joining tests
- Reply-to: sayle at gcc dot gnu dot org, 105309-quiet at bugs dot debian dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, herbert at gondor dot apana dot org dot au, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: i386 optimisation: joining tests
State-Changed-From-To: analyzed->closed
State-Changed-By: sayle
State-Changed-When: Mon May 6 20:40:16 2002
State-Changed-Why:
This problem has been fixed on mainline by the recent patch:
2002-05-06 Roger Sayle <roger@eyesopen.com>
* fold-const.c (sign_bit_p): New function.
(fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
(A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
Reapply fold when converting (A & C) == C into (A & C) != 0.
We now join the two tests together and generate better code.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3995