This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/52005] tree-ssa-combineif does not work with some cfgs
- 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: Thu, 26 Jan 2012 22:08:05 +0000
- Subject: [Bug tree-optimization/52005] tree-ssa-combineif does not work with some cfgs
- Auto-submitted: auto-generated
- References: <bug-52005-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52005
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-26 22:08:05 UTC ---
Here is another testcase:
int f(int x, int a, int b)
{
int t = 0;
int c = 1 << a;
if (!(x & 1))
t = 0;
else
if (x & (1 << 2))
t = g();
else
t = 0;
return t;
}
The original testcase is not currently optimized with current patch but the
above one is. I am still on the case of the original testcase.