[Bug middle-end/40815] redundant neg instruction caused by loop-invariant

2010-04-08 Thread mkuvyrkov at gcc dot gnu dot org
--- 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=gccview=revrev=158105 Log: PR middle-end/40815 * tree-ssa-reassoc.c

[Bug middle-end/40815] redundant neg instruction caused by loop-invariant

2010-04-08 Thread mkuvyrkov at gcc dot gnu dot org
--- 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

[Bug middle-end/40815] redundant neg instruction caused by loop-invariant

2010-03-11 Thread mkuvyrkov 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=20080action=view) Fixed and tested patch Well, sure enough the initial patch had an error: `(-a) + (-b)' was getting optimized

[Bug middle-end/40815] redundant neg instruction caused by loop-invariant

2010-03-11 Thread rguenth at gcc dot gnu dot org
--- 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)), +

[Bug middle-end/40815] redundant neg instruction caused by loop-invariant

2010-03-10 Thread mkuvyrkov at gcc dot gnu dot org
--- 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=20077action=view) Proposed patch Richard, Thank you for the great pointers how to fix this bug. Here is the proposed patch to

[Bug middle-end/40815] redundant neg instruction caused by loop-invariant

2010-02-08 Thread steven at gcc dot gnu dot org
--- 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

[Bug middle-end/40815] redundant neg instruction caused by loop-invariant

2009-12-11 Thread rearnsha at gcc dot gnu dot org
-- rearnsha at gcc dot gnu dot org changed: What|Removed |Added Severity|normal |enhancement http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40815

[Bug middle-end/40815] redundant neg instruction caused by loop-invariant

2009-09-18 Thread ramana at gcc dot gnu dot org
--- 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