OSDN Git Service

* tree-ssa-reassoc.c (repropagate_negates): Merge negates also
authormatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Apr 2010 12:39:53 +0000 (12:39 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:32:05 +0000 (14:32 +0900)
into MINUS_EXPRs.
(can_reassociate_p): New function.
(break_up_subtract_bb, reassociate_bb): Use it.

testsuite/
* gcc.dg/tree-ssa/negate.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158265 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/tree-ssa-reassoc.c

index b0a3393..969bf00 100644 (file)
@@ -1,3 +1,10 @@
+2010-04-13  Michael Matz  <matz@suse.de>
+
+       * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
+       into MINUS_EXPRs.
+       (can_reassociate_p): New function.
+       (break_up_subtract_bb, reassociate_bb): Use it.
+
 2010-04-13  Richard Guenther  <rguenther@suse.de>
 
        PR bootstrap/43737
index 68590f7..f2130c4 100644 (file)
@@ -1,3 +1,7 @@
+2010-04-13  Michael Matz  <matz@suse.de>
+
+       * gcc.dg/tree-ssa/negate.c: New testcase.
+
 2010-04-13  Richard Guenther  <rguenther@suse.de>
 
        PR testsuite/43735
index cfb0642..560dea9 100644 (file)
@@ -1947,7 +1947,7 @@ can_reassociate_p (tree op)
   tree type = TREE_TYPE (op);
   if (INTEGRAL_TYPE_P (type)
       || NON_SAT_FIXED_POINT_TYPE_P (type)
-      || (flag_associative_math && FLOAT_TYPE_P (type)))
+      || (flag_associative_math && SCALAR_FLOAT_TYPE_P (type)))
     return true;
   return false;
 }