public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/4046: redundant conditional branch
@ 2002-07-01 19:51 sayle
0 siblings, 0 replies; 2+ messages in thread
From: sayle @ 2002-07-01 19:51 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, niemayer, nobody
Synopsis: redundant conditional branch
State-Changed-From-To: analyzed->closed
State-Changed-By: sayle
State-Changed-When: Mon Jul 1 19:51:35 2002
State-Changed-Why:
This problem has now been fixed on mainline CVS by the
combination of the following two patches. We now generate
only a single branch in the GNATS testcase.
2002-07-01 Roger Sayle <roger@eyesopen.com>
PR opt/4046
* fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
B are truth values.
2002-06-15 Roger Sayle <roger@eyesopen.com>
* fold-const.c (comparison_to_compcode): New function to convert
an comparison TREE CODE into a bit-based representation.
(compcode_to_comparison): New function to convert from this bit
based representation back to a comparison TREE CODE.
(fold_truthop): Simplify (x<y) && (x==y) and related composite
comparisons.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4046
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: optimization/4046: redundant conditional branch
@ 2002-04-02 19:53 rth
0 siblings, 0 replies; 2+ messages in thread
From: rth @ 2002-04-02 19:53 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, niemayer, nobody
Old Synopsis: redundant comparison introduced with gcc-3.0 (regression from gcc 2)
New Synopsis: redundant conditional branch
State-Changed-From-To: open->analyzed
State-Changed-By: rth
State-Changed-When: Tue Apr 2 19:53:47 2002
State-Changed-Why:
In gcc 3.1, the regression from gcc 2 is gone, i.e. we once again get
jl .L8
jle .L8
incl %eax
.L8:
However, I'm not closing the PR since we really should have
eliminated one of the branches.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4046
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-02 2:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-01 19:51 optimization/4046: redundant conditional branch sayle
-- strict thread matches above, loose matches on Subject: below --
2002-04-02 19:53 rth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).