summaryrefslogtreecommitdiffhomepage
path: root/ir/be/belive.c
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/be/belive.c
parentdf73f95b590338a93de60976f1327097b6cc9837 (diff)
all: Make formatting of else clauses more consistent.
Diffstat (limited to 'ir/be/belive.c')
-rw-r--r--ir/be/belive.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/ir/be/belive.c b/ir/be/belive.c
index 2010ffb..7bba778 100644
--- a/ir/be/belive.c
+++ b/ir/be/belive.c
@@ -62,11 +62,11 @@ static inline unsigned _be_liveness_bsearch(be_lv_info_t *arr, const ir_node *no
int md = lo + ((hi - lo) >> 1);
ir_node *md_node = payload[md].node.node;
- if (node > md_node)
+ if (node > md_node) {
lo = md + 1;
- else if (node < md_node)
+ } else if (node < md_node) {
hi = md;
- else {
+ } else {
res = md;
break;
}
@@ -267,13 +267,11 @@ static void liveness_for_node(ir_node *irn)
if (is_Phi(use)) {
ir_node *pred_block = get_Block_cfgpred_block(use_block, edge->pos);
live_end_at_block(pred_block, be_lv_state_end);
- }
-
- /*
- * Else, the value is live in at this block. Mark it and call live
- * out on the predecessors.
- */
- else if (def_block != use_block) {
+ } else if (def_block != use_block) {
+ /*
+ * Else, the value is live in at this block. Mark it and call live
+ * out on the predecessors.
+ */
int i;
be_lv_info_node_t *const n = be_lv_get_or_set(re.lv, use_block, irn);