aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2007-06-08 01:34:31 +0000
committerDaniel Berlin <dberlin@dberlin.org>2007-06-08 01:34:31 +0000
commit08ae56191409cb333e160ef4a4314fdd6a2e6526 (patch)
tree25c622cc0b0388007aaf46b8e5d2b5776aa8c10a
parent770e33df225a172f344041c42ffd7302ce7da2d5 (diff)
Add fixes from review by diegogcc-pre-vn
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-pre-vn@125553 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/timevar.def1
-rw-r--r--gcc/tree-ssa-sccvn.c18
2 files changed, 9 insertions, 10 deletions
diff --git a/gcc/timevar.def b/gcc/timevar.def
index a2439f868ff..f9690fe080f 100644
--- a/gcc/timevar.def
+++ b/gcc/timevar.def
@@ -91,7 +91,6 @@ DEFTIMEVAR (TV_TREE_PHI_CPROP , "tree PHI const/copy prop")
DEFTIMEVAR (TV_TREE_SPLIT_EDGES , "tree split crit edges")
DEFTIMEVAR (TV_TREE_REASSOC , "tree reassociation")
DEFTIMEVAR (TV_TREE_PRE , "tree PRE")
-DEFTIMEVAR (TV_TREE_SCC_VN , "tree SCC VN")
DEFTIMEVAR (TV_TREE_REDPHI , "tree redundant PHIs")
DEFTIMEVAR (TV_TREE_FRE , "tree FRE")
DEFTIMEVAR (TV_TREE_SINK , "tree code sinking")
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c
index c577959d0f3..673a6151316 100644
--- a/gcc/tree-ssa-sccvn.c
+++ b/gcc/tree-ssa-sccvn.c
@@ -46,7 +46,8 @@ Boston, MA 02110-1301, USA. */
#include "tree-ssa-sccvn.h"
/* This algorithm is based on the SCC algorithm presented by Keith
- Cooper and L. Taylor Simpson in "SCC-Based Value numbering". In
+ Cooper and L. Taylor Simpson in "SCC-Based Value numbering"
+ (http://citeseer.ist.psu.edu/41805.html). In
straight line code, it is equivalent to a regular hash based value
numbering that is performed in reverse postorder.
@@ -198,7 +199,7 @@ typedef struct vn_reference_s
static vn_tables_t valid_info;
-/* Optimistic hashtables storing information we are making assumptions
+/* Optimistic hashtables storing information we are making assumptions about
during iterations. */
static vn_tables_t optimistic_info;
@@ -446,7 +447,7 @@ copy_reference_ops_from_ref (tree ref, VEC(vn_reference_op_s, heap) **result)
/* Copy the call_expr opcode, type, function being called, and
arguments. */
- memset(&temp, 0, sizeof (temp));
+ memset (&temp, 0, sizeof (temp));
temp.type = TREE_TYPE (ref);
temp.opcode = CALL_EXPR;
VEC_safe_push (vn_reference_op_s, heap, *result, &temp);
@@ -461,7 +462,7 @@ copy_reference_ops_from_ref (tree ref, VEC(vn_reference_op_s, heap) **result)
FOR_EACH_CALL_EXPR_ARG (callarg, iter, ref)
{
- memset(&temp, 0, sizeof (temp));
+ memset (&temp, 0, sizeof (temp));
temp.type = TREE_TYPE (callarg);
temp.opcode = TREE_CODE (callarg);
temp.op0 = callarg;
@@ -470,12 +471,12 @@ copy_reference_ops_from_ref (tree ref, VEC(vn_reference_op_s, heap) **result)
return;
}
- /* For non-calls, reference-opize the addressing info. */
+ /* For non-calls, store the information that makes up the address. */
while (ref)
{
vn_reference_op_s temp;
- memset(&temp, 0, sizeof (temp));
+ memset (&temp, 0, sizeof (temp));
temp.type = TREE_TYPE (ref);
temp.opcode = TREE_CODE (ref);
@@ -1379,8 +1380,7 @@ simplify_binary_expression (tree rhs)
return NULL_TREE;
}
-/* Try to simplify RHS using equivalences, constant folding, and black
- magic. */
+/* Try to simplify RHS using equivalences and constant folding. */
static tree
try_to_simplify (tree stmt, tree rhs)
@@ -1690,7 +1690,7 @@ process_scc (VEC (tree, heap) *scc)
if (VEC_length (tree, scc) == 1)
{
tree use = VEC_index (tree, scc, 0);
- // if (!VN_INFO (use)->use_processed)
+ if (!VN_INFO (use)->use_processed)
visit_use (use);
}
else