--- Comment #11 from mkuvyrkov at gcc dot gnu dot org 2010-04-08 08:31
---
Fixed in the above revision.
--
mkuvyrkov at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #10 from mkuvyrkov at gcc dot gnu dot org 2010-04-08 08:20
---
Subject: Bug 40815
Author: mkuvyrkov
Date: Thu Apr 8 08:20:36 2010
New Revision: 158105
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158105
Log:
PR middle-end/40815
* tree-ssa-reassoc.
--- Comment #9 from rguenth at gcc dot gnu dot org 2010-03-11 11:19 ---
+ ops_arr[op_num] = build1 (NOP_EXPR,
+ TREE_TYPE (gimple_assign_lhs
+(neg)),
+
--- 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
--- Comment #7 from mkuvyrkov at gcc dot gnu dot org 2010-03-10 19:39
---
Created an attachment (id=20077)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20077&action=view)
Proposed patch
Richard,
Thank you for the great pointers how to fix this bug. Here is the proposed
patch t
--- Comment #6 from steven at gcc dot gnu dot org 2010-02-08 16:27 ---
Must be a regression from some version, if POINTER_PLUS_EXPR is the reason for
this extra NEG. Matz knows TER best these days, so matz -> cc.
--
steven at gcc dot gnu dot org changed:
What|Removed
--
rearnsha at gcc dot gnu dot org changed:
What|Removed |Added
Severity|normal |enhancement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40815
--- Comment #5 from ramana at gcc dot gnu dot org 2009-09-18 23:46 ---
This should be a middle end bug rather than a target bug. TER needs to
maintain state regarding the negate_expr (which is in a previous basic block
but only has a single use) and then we could query the def during ex