This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r175821 - in /trunk/gcc: ChangeLog simplify-rtx...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 04 Jul 2011 18:53:56 -0000
- Subject: r175821 - in /trunk/gcc: ChangeLog simplify-rtx...
Author: jakub
Date: Mon Jul 4 18:53:56 2011
New Revision: 175821
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175821
Log:
PR rtl-optimization/49472
* simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
negating MULT, negate the second operand instead of first.
(simplify_binary_operation_1) <case MULT>: If one operand is
a NEG and the other is MULT, don't attempt to optimize by
negation of the MULT operand if it only moves the NEG operation
around.
* gfortran.dg/pr49472.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/pr49472.f90
Modified:
trunk/gcc/ChangeLog
trunk/gcc/simplify-rtx.c
trunk/gcc/testsuite/ChangeLog