This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/19516] missed optimization (bool)
- From: "rguenth at tat dot physik dot uni-tuebingen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jan 2005 11:13:35 -0000
- Subject: [Bug tree-optimization/19516] missed optimization (bool)
- References: <20050118222857.19516.rguenth@tat.physik.uni-tuebingen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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