From f25ae20e5b78221d2029274d1bf27314e9257014 Mon Sep 17 00:00:00 2001 From: Michael Ploujnikov Date: Fri, 14 Dec 2018 00:15:08 +0000 Subject: [PATCH] * ipa-cp.c: Fix various comment typos. From-SVN: r267114 --- gcc/ChangeLog | 4 ++++ gcc/ipa-cp.c | 16 ++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7b4c219e761..5816ebb3995 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-12-13 Michael Ploujnikov + + * ipa-cp.c: Fix various comment typos. + 2018-12-13 Jakub Jelinek PR tree-optimization/88444 diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index d9ac7d8c35c..8c183110b10 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -191,7 +191,7 @@ public: /* Depth first search number and low link for topological sorting of values. */ int dfs, low_link; - /* True if this valye is currently on the topo-sort stack. */ + /* True if this value is currently on the topo-sort stack. */ bool on_stack; ipcp_value() @@ -880,7 +880,7 @@ ipcp_lattice::set_contains_variable () return ret; } -/* Set all aggegate lattices in PLATS to bottom and return true if they were +/* Set all aggregate lattices in PLATS to bottom and return true if they were not previously set as such. */ static inline bool @@ -891,7 +891,7 @@ set_agg_lats_to_bottom (struct ipcp_param_lattices *plats) return ret; } -/* Mark all aggegate lattices in PLATS as containing an unknown value and +/* Mark all aggregate lattices in PLATS as containing an unknown value and return true if they were not previously marked as such. */ static inline bool @@ -908,7 +908,7 @@ ipcp_vr_lattice::meet_with (const ipcp_vr_lattice &other) return meet_with_1 (&other.m_vr); } -/* Meet the current value of the lattice with value ranfge described by VR +/* Meet the current value of the lattice with value range described by VR lattice. */ bool @@ -1330,7 +1330,7 @@ ipa_value_from_jfunc (struct ipa_node_params *info, struct ipa_jump_func *jfunc, return NULL_TREE; } -/* Determie whether JFUNC evaluates to single known polymorphic context, given +/* Determine whether JFUNC evaluates to single known polymorphic context, given that INFO describes the caller node or the one it is inlined to, CS is the call graph edge corresponding to JFUNC and CSIDX index of the described parameter. */ @@ -2379,7 +2379,7 @@ ipa_get_indirect_edge_target_1 (struct cgraph_edge *ie, t = NULL; - /* Try to work out value of virtual table pointer value in replacemnets. */ + /* Try to work out value of virtual table pointer value in replacements. */ if (!t && agg_reps && !ie->indirect_info->by_ref) { while (agg_reps) @@ -4602,7 +4602,7 @@ ipcp_val_agg_replacement_ok_p (ipa_agg_replacement_value *aggvals, return false; } -/* Return true if offset is minus one because source of a polymorphic contect +/* Return true if offset is minus one because source of a polymorphic context cannot be an aggregate value. */ DEBUG_FUNCTION bool @@ -4613,7 +4613,7 @@ ipcp_val_agg_replacement_ok_p (ipa_agg_replacement_value *, return offset == -1; } -/* Decide wheter to create a special version of NODE for value VAL of parameter +/* Decide whether to create a special version of NODE for value VAL of parameter at the given INDEX. If OFFSET is -1, the value is for the parameter itself, otherwise it is stored at the given OFFSET of the parameter. KNOWN_CSTS, KNOWN_CONTEXTS and KNOWN_AGGS describe the other already known values. */ -- 2.30.2