This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/64713] Missed ccmp optimization
- 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: Sat, 24 Jan 2015 02:26:57 +0000
- Subject: [Bug rtl-optimization/64713] Missed ccmp optimization
- Auto-submitted: auto-generated
- References: <bug-64713-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64713
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is a testcase which shows one of the issues with removing the optimization
inside expand:
int foo_c (int a, int b)
{
if (a > 9 && b < 34)
return 4;
else
return 26;
}
if the code was:
int foo_c (int a, int b, int c, int d)
{
if (a > 9 && b < 34)
return c;
else
return d;
}
--- CUT ---
We would optimize out the cset.