diff options
author | Nathan Sidwell <nathan@acm.org> | 2016-08-26 13:03:32 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2016-08-26 13:03:32 +0000 |
commit | d7cf07302bfb5b892571a19dea76bb490f348e3d (patch) | |
tree | 33c43043732c5e2ef027b4286347f90d807b67fe | |
parent | 923680fa59b1f0a0a2bdbbc2bd4148663f1216a9 (diff) |
* ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
assignment inside if condition.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@239779 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-inline-analysis.c | 14 |
2 files changed, 10 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 408b7150064..72dc183738d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-08-26 Nathan Sidwell <nathan@acm.org> + + * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary + assignment inside if condition. + 2016-08-26 Richard Biener <rguenther@suse.de> PR tree-optimization/69047 diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index da29d2240a4..c8b1fefc288 100644 --- a/gcc/ipa-inline-analysis.c +++ b/gcc/ipa-inline-analysis.c @@ -4430,7 +4430,6 @@ write_inline_edge_summary (struct output_block *ob, struct cgraph_edge *e) void inline_write_summary (void) { - struct cgraph_node *node; struct output_block *ob = create_output_block (LTO_section_inline_summary); lto_symtab_encoder_t encoder = ob->decl_state->symtab_node_encoder; unsigned int count = 0; @@ -4449,19 +4448,16 @@ inline_write_summary (void) { symtab_node *snode = lto_symtab_encoder_deref (encoder, i); cgraph_node *cnode = dyn_cast <cgraph_node *> (snode); - if (cnode && (node = cnode)->definition && !node->alias) + if (cnode && cnode->definition && !cnode->alias) { - struct inline_summary *info = inline_summaries->get (node); + struct inline_summary *info = inline_summaries->get (cnode); struct bitpack_d bp; struct cgraph_edge *edge; int i; size_time_entry *e; struct condition *c; - streamer_write_uhwi (ob, - lto_symtab_encoder_encode (encoder, - - node)); + streamer_write_uhwi (ob, lto_symtab_encoder_encode (encoder, cnode)); streamer_write_hwi (ob, info->estimated_self_stack_size); streamer_write_hwi (ob, info->self_size); streamer_write_hwi (ob, info->self_time); @@ -4494,9 +4490,9 @@ inline_write_summary (void) write_predicate (ob, info->loop_iterations); write_predicate (ob, info->loop_stride); write_predicate (ob, info->array_index); - for (edge = node->callees; edge; edge = edge->next_callee) + for (edge = cnode->callees; edge; edge = edge->next_callee) write_inline_edge_summary (ob, edge); - for (edge = node->indirect_calls; edge; edge = edge->next_callee) + for (edge = cnode->indirect_calls; edge; edge = edge->next_callee) write_inline_edge_summary (ob, edge); } } |