[Bug tree-optimization/14442] [tree-ssa] missed sib if conversion optimization on the tree level

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 28 20:01:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list