This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]