This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/14442] [tree-ssa] missed sib if conversion optimization on the tree level
- 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: 28 Sep 2004 20:01:35 -0000
- Subject: [Bug tree-optimization/14442] [tree-ssa] missed sib if conversion optimization on the tree level
- References: <20040305063050.14442.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-28 20:01 -------
With some work I have it down to:
f1 ()
{
_Bool D.1122;
_Bool D.1120;
int iftmp.0;
<bb 0>:
D.1120 = t ();
if (D.1120 == 0) goto <L6>; else goto <L0>;
<L6>:;
iftmp.0 = 0;
goto <bb 2> (<L3>);
<L0>:;
D.1122 = t1 ();
iftmp.0 = (int) !(D.1122 == 0); <-- still can be fixed some more to just (int) (D.1122). but that will be
a fold issue (there is another bug about that).
<L3>:;
return (int) (_Bool) iftmp.0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14442