From 154104ce2ac7983a5d0ba7239254de9fc4d0144d Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 24 Feb 2011 22:36:40 +0000 Subject: [PATCH] Simplified the code and fixed a comment. No functional change. [r28460] --- ir/opt/combo.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ir/opt/combo.c b/ir/opt/combo.c index 6e7693738..d48e8490a 100644 --- a/ir/opt/combo.c +++ b/ir/opt/combo.c @@ -253,7 +253,7 @@ static int cmp_irn_opcode(const ir_node *a, const ir_node *b) } /* - * here, we already now that the nodes are identical except their + * here, we already know that the nodes are identical except their * attributes */ if (a->op->ops.node_cmp_attr) @@ -292,15 +292,13 @@ static void check_partition(const partition_t *T) static void check_opcode(const partition_t *Z) { node_t *node; - const ir_node *repr; - int first = 1; + const ir_node *repr = NULL; list_for_each_entry(node_t, node, &Z->Leader, node_list) { ir_node *irn = node->node; - if (first) { - repr = irn; - first = 0; + if (repr == NULL) { + repr = irn; } else { assert(cmp_irn_opcode(repr, irn) == 0); } -- 2.20.1