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/19516] missed optimization (bool)


------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de  2005-01-23 11:13 -------
How comes, that if I change _Bool to int, after tree-optimizations we get

foo (flag)
{
  int D.1121;

<bb 0>:
  D.1121_2 = *flag_1;
  if (D.1121_2 != 0) goto <L0>; else goto <L3>;

<L0>:;
  bar ();
  D.1121_11 = *flag_1;
  if (D.1121_11 != 0) goto <L2>; else goto <L3>;

<L2>:;
  bar () [tail call];

<L3>:;
  return;

}

If your analysis were correct, this shouldn't be possible, no?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19516


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