------- 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 to fix it, I am now testing it on both x86_64 and ARM.

One thing I am not sure about in this patch is whether I am forgetting a check
before swapping the operands (to optimize `-a + b' into `b - a') -- is any
check needed for {PLUS, MINUS}_EXPR in this case?

Thank you.


-- 

mkuvyrkov at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mkuvyrkov at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40815

Reply via email to