This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/67971] Failure to unify conditional argument selection with conditional result selection
- 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, 07 Sep 2016 18:40:30 +0000
- Subject: [Bug tree-optimization/67971] Failure to unify conditional argument selection with conditional result selection
- Auto-submitted: auto-generated
- References: <bug-67971-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67971
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note we should able to optimize this just to
int
f1 (int cond, double x, double y)
{
double z1, z2;
z2 = __builtin_cos (cond ? x : y);
return z2 == z2;
}
But that is 64700.