https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15452
Bug 15452 depends on bug 15459, which changed state.
Bug 15459 Summary: [meta-bug] there should be a tree combiner like the rtl one
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15459
What|Removed |Added
--- Comment #8 from pinskia at gcc dot gnu dot org 2009-04-22 21:05 ---
This has been fixed for a while now, at least since 4.4.0.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--
--- Comment #7 from dberlin at gcc dot gnu dot org 2006-08-24 14:43 ---
Subject: Re: [tree-ssa] Optimize cascaded a
= a == 0;
pinskia at gcc dot gnu dot org wrote:
> --- Comment #6 from pinskia at gcc dot gnu dot org 2006-08-24 04:27
> ---
> Another interesting case would be
pinskia at gcc dot gnu dot org wrote:
> --- Comment #6 from pinskia at gcc dot gnu dot org 2006-08-24 04:27
> ---
> Another interesting case would be (but which could be handled by VRP):
> int
> foo (int a)
> {
> a = a!=0;
> a = a!=0;
> a = a!=0;
> a = a!=0;
> a = a!=0;
> retu
--- Comment #6 from pinskia at gcc dot gnu dot org 2006-08-24 04:27 ---
Another interesting case would be (but which could be handled by VRP):
int
foo (int a)
{
a = a!=0;
a = a!=0;
a = a!=0;
a = a!=0;
a = a!=0;
return a;
}
Which should be optimized to:
int foo(int a) { return
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-12
21:26 ---
It might be a while for me to rewrite the tree combiner so unassigning for now.
--
What|Removed |Added
---