diff options
author | amacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-18 14:13:54 +0000 |
---|---|---|
committer | amacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-18 14:13:54 +0000 |
commit | bbe5b6aaa5dfb6c6a6bb57238107eddea746d20b (patch) | |
tree | f5f2e1555541060d7fd09a0130a521d5d22d2379 | |
parent | 4bf43eda90167b3a625f120217c0e18a15b5175b (diff) | |
download | gcc-bbe5b6aaa5dfb6c6a6bb57238107eddea746d20b.tar.gz |
Fix comments and formatrting
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140457 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-flow.h | 2 | ||||
-rw-r--r-- | gcc/tree-outof-ssa.c | 6 |
3 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c608dccb4b0..0c44dff77ed 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2008-09-18 Andrew MacLeod <amacleod@redhat.com> + * tree-outof-ssa.c (eliminate_useless_phis): fix formatting. + * tree-flow-.h (struct immediate_use_iterator_d): Fix comment. + +2008-09-18 Andrew MacLeod <amacleod@redhat.com> + PR tree-optimization/37102 * tree-outof-ssa.c (remove_gimple_phi_args): Remove all the PHI args from a node. Check to see if another PHI is dead. diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h index 7f3c0dddeb5..056162fbb1b 100644 --- a/gcc/tree-flow.h +++ b/gcc/tree-flow.h @@ -508,7 +508,7 @@ typedef struct immediate_use_iterator_d { FOR_EACH_IMM_USE_ON_STMT (use_p, iter) { - SET_USE (use_p) = blah; + SET_USE (use_p, blah); } update_stmt (stmt); } */ diff --git a/gcc/tree-outof-ssa.c b/gcc/tree-outof-ssa.c index 042e349368a..82cc0ffea59 100644 --- a/gcc/tree-outof-ssa.c +++ b/gcc/tree-outof-ssa.c @@ -606,7 +606,7 @@ replace_def_variable (var_map map, def_operand_p def_p, tree *expr) } -/* Remove each argument from a PHI node. If an arg was the last use of an SSA_NAME, +/* Remove each argument from PHI. If an arg was the last use of an SSA_NAME, check to see if this allows another PHI node to be removed. */ static void @@ -667,8 +667,8 @@ eliminate_useless_phis (void) { #ifdef ENABLE_CHECKING size_t i; - /* There should be no arguments of this PHI which are not virtual, or we - get incorrect results. */ + /* There should be no arguments which are not virtual, or the + results will be incorrect. */ for (i = 0; i < gimple_phi_num_args (phi); i++) { tree arg = PHI_ARG_DEF (phi, i); |