This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/40815] redundant neg instruction caused by loop-invariant
- From: "mkuvyrkov at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Mar 2010 08:57:53 -0000
- Subject: [Bug middle-end/40815] redundant neg instruction caused by loop-invariant
- References: <bug-40815-17659@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from mkuvyrkov at gcc dot gnu dot org 2010-03-11 08:57 -------
Created an attachment (id=20080)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20080&action=view)
Fixed and tested patch
Well, sure enough the initial patch had an error: `(-a) + (-b)' was getting
optimized into `a + b' instead of (-a) - b. This new version was tested on
x86_64 without regressions and fixes. Any comments before I post it to
gcc-patches@ ?
Thanks.
--
mkuvyrkov at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #20077|0 |1
is obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40815