This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/51988] value_replacement in PHIOPT should handle even the cases where there are other PHIs even with non equal value
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 25 Jan 2012 21:35:01 +0000
- Subject: [Bug tree-optimization/51988] value_replacement in PHIOPT should handle even the cases where there are other PHIs even with non equal value
- Auto-submitted: auto-generated
- References: <bug-51988-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51988
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-25 21:35:01 UTC ---
Here is another testcase (which passes with the patch I posted but does not
with a patch which I created internally to create COND_EXPR's).
int g(int,int);
int h(int)
int f(int t, int c)
{
int d = 0;
int e = 0;
if (t)
{
d = h(c);
e = t;
}
else d = 0, e = 0;
return g(d,e);
}