OSDN Git Service

2010-05-06 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 May 2010 09:04:00 +0000 (09:04 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:00:37 +0000 (14:00 +0900)
PR tree-optimization/43934
* tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
(stmt_cost): Likewise.
(extract_true_false_args_from_phi): New helper.
(determine_max_movement): For PHI nodes verify we can hoist them
and compute their cost.
(determine_invariantness_stmt): Handle PHI nodes.
(move_computations_stmt): Likewise.  Hoist PHI nodes in
if-converted form using COND_EXPRs.
(move_computations): Return TODO_cleanup_cfg if we hoisted PHI
nodes.
(tree_ssa_lim): Likewise.
* tree-flow.h (tree_ssa_lim): Adjust prototype.
* tree-ssa-loop.c (tree_ssa_loop_im): Return todo.

* gcc.dg/tree-ssa/ssa-lim-9.c: New testcase.

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

gcc/ChangeLog
gcc/testsuite/ChangeLog

index 4d0c54a..5051ece 100644 (file)
@@ -1,5 +1,22 @@
 2010-05-06  Richard Guenther  <rguenther@suse.de>
 
 2010-05-06  Richard Guenther  <rguenther@suse.de>
 
+       PR tree-optimization/43934
+       * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
+       (stmt_cost): Likewise.
+       (extract_true_false_args_from_phi): New helper.
+       (determine_max_movement): For PHI nodes verify we can hoist them
+       and compute their cost.
+       (determine_invariantness_stmt): Handle PHI nodes.
+       (move_computations_stmt): Likewise.  Hoist PHI nodes in
+       if-converted form using COND_EXPRs.
+       (move_computations): Return TODO_cleanup_cfg if we hoisted PHI
+       nodes.
+       (tree_ssa_lim): Likewise.
+       * tree-flow.h (tree_ssa_lim): Adjust prototype.
+       * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
+
+2010-05-06  Richard Guenther  <rguenther@suse.de>
+
        PR tree-optimization/43987
        * tree-ssa-structalias.c (could_have_pointers): For possibly
        address-taken variables force pointers to be recorded.
        PR tree-optimization/43987
        * tree-ssa-structalias.c (could_have_pointers): For possibly
        address-taken variables force pointers to be recorded.
index 36eea3d..2eebcf3 100644 (file)
@@ -1,3 +1,18 @@
+2010-05-06  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/43934
+       * gcc.dg/tree-ssa/ssa-lim-9.c: New testcase.
+
+2010-05-06  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/43987
+       * gcc.c-torture/execute/pr43987.c: New testcase.
+       * gcc.dg/torture/pta-escape-1.c: Adjust.
+       * gcc.dg/tree-ssa/pta-escape-1.c: Likewise.
+       * gcc.dg/tree-ssa/pta-escape-2.c: Likewise.
+       * gcc.dg/tree-ssa/pta-escape-3.c: Likewise.
+       * gcc.dg/ipa/ipa-pta-11.c: Likewise.
+
 2010-04-22  Jakub Jelinek <jakub@redhat.com>
            Dodji Seketeli  <dodji@redhat.com>
 
 2010-04-22  Jakub Jelinek <jakub@redhat.com>
            Dodji Seketeli  <dodji@redhat.com>