summaryrefslogtreecommitdiffhomepage
path: root/ir/stat
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2014-04-07 19:56:29 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2014-04-08 15:56:29 +0200
commit147d50a961878d38ad593b8d68666ddf835ed2cf (patch)
tree94b042b96a87291da532cc1b66f0f4bca39d080c /ir/stat
parentdf73f95b590338a93de60976f1327097b6cc9837 (diff)
all: Make formatting of else clauses more consistent.
Diffstat (limited to 'ir/stat')
-rw-r--r--ir/stat/const_stat.c6
-rw-r--r--ir/stat/firmstat.c12
-rw-r--r--ir/stat/stat_dmp.c4
3 files changed, 11 insertions, 11 deletions
diff --git a/ir/stat/const_stat.c b/ir/stat/const_stat.c
index e7e0b0d..4b3c2a3 100644
--- a/ir/stat/const_stat.c
+++ b/ir/stat/const_stat.c
@@ -52,11 +52,11 @@ static float_classify_t classify_float_value(ir_tarval *tv)
{
ir_mode *mode = get_tarval_mode(tv);
- if (tv == get_mode_null(mode))
+ if (tv == get_mode_null(mode)) {
return STAT_FC_0;
- else if (tv == get_mode_one(mode))
+ } else if (tv == get_mode_one(mode)) {
return STAT_FC_1;
- else if (tarval_is_finite(tv) && tarval_zero_mantissa(tv)) {
+ } else if (tarval_is_finite(tv) && tarval_zero_mantissa(tv)) {
int exp = tarval_get_exponent(tv);
if (! tarval_is_negative(tv)) {
diff --git a/ir/stat/firmstat.c b/ir/stat/firmstat.c
index 791ac9b..0ff9505 100644
--- a/ir/stat/firmstat.c
+++ b/ir/stat/firmstat.c
@@ -630,9 +630,9 @@ static void undate_block_info(ir_node *node, graph_entry_t *graph)
foreach_irn_in(node, i, pred) {
ir_node *const other_block = get_nodes_block(pred);
- if (other_block == block)
+ if (other_block == block) {
cnt_inc(&b_entry->cnt[bcnt_edges]); /* a in block edge */
- else {
+ } else {
block_entry_t *b_entry_other = block_get_entry(&graph->recalc_cnts, get_irn_node_nr(other_block), graph->block_hash);
cnt_inc(&b_entry->cnt[bcnt_in_edges]); /* an edge coming from another block */
@@ -653,9 +653,9 @@ static void analyse_params_of_Call(graph_entry_t *graph, ir_node *call)
for (i = 0; i < n; ++i) {
ir_node *param = get_Call_param(call, i);
- if (is_irn_constlike(param))
+ if (is_irn_constlike(param)) {
++num_const_args;
- else if (is_Sel(param)) {
+ } else if (is_Sel(param)) {
ir_node *base = param;
do {
@@ -1131,9 +1131,9 @@ static void update_graph_stat(graph_entry_t *global, graph_entry_t *graph)
stat_calc_pattern_history(graph->irg);
/* leaf function did not call others */
- if (graph->is_leaf)
+ if (graph->is_leaf) {
graph->is_leaf_call = LCS_NON_LEAF_CALL;
- else if (graph->is_leaf_call == LCS_UNKNOWN) {
+ } else if (graph->is_leaf_call == LCS_UNKNOWN) {
/* we still don't know if this graph calls leaf-functions, so enqueue */
pdeq_putl(status->wait_q, graph);
}
diff --git a/ir/stat/stat_dmp.c b/ir/stat/stat_dmp.c
index ce76f9b..d21bbba 100644
--- a/ir/stat/stat_dmp.c
+++ b/ir/stat/stat_dmp.c
@@ -449,9 +449,9 @@ static void simple_dump_graph(dumper_t *dmp, graph_entry_t *entry)
ir_graph *const_irg = get_const_code_irg();
int i;
- if (entry->irg == const_irg)
+ if (entry->irg == const_irg) {
fprintf(dmp->f, "\nConst code Irg %p", (void *)entry->irg);
- else {
+ } else {
if (entry->ent)
fprintf(dmp->f, "\nEntity %s, Irg %p", get_entity_ld_name(entry->ent), (void *)entry->irg);
else