This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/81165] Regression in GCC-8.0.0's optimizer
- 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, 22 Jun 2017 07:09:24 +0000
- Subject: [Bug tree-optimization/81165] Regression in GCC-8.0.0's optimizer
- Auto-submitted: auto-generated
- References: <bug-81165-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81165
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note even GCC 7 misses the following optimization:
if(1>>x2)
Should be converted into:
if(x2 == 0)
I am testing a patch for that, note it does not get us back to where 7.1 was
but still a good thing to do.