From: Christoph Mallon Date: Tue, 19 Jun 2007 17:08:54 +0000 (+0000) Subject: Manual CSE. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=2322cb846d415867f1bef6a2b877000f8d6d54b6;p=libfirm Manual CSE. [r14653] --- diff --git a/ir/ir/iropt.c b/ir/ir/iropt.c index bab927fd6..82bc44bb4 100644 --- a/ir/ir/iropt.c +++ b/ir/ir/iropt.c @@ -3529,11 +3529,14 @@ static int node_cmp_attr_Call(ir_node *a, ir_node *b) { /** Compares the attributes of two Sel nodes. */ static int node_cmp_attr_Sel(ir_node *a, ir_node *b) { - return (get_irn_sel_attr(a).ent->kind != get_irn_sel_attr(b).ent->kind) - || (get_irn_sel_attr(a).ent->name != get_irn_sel_attr(b).ent->name) - || (get_irn_sel_attr(a).ent->owner != get_irn_sel_attr(b).ent->owner) - || (get_irn_sel_attr(a).ent->ld_name != get_irn_sel_attr(b).ent->ld_name) - || (get_irn_sel_attr(a).ent->type != get_irn_sel_attr(b).ent->type); + const ir_entity *a_ent = get_irn_sel_attr(a).ent; + const ir_entity *b_ent = get_irn_sel_attr(b).ent; + return + (a_ent->kind != b_ent->kind) || + (a_ent->name != b_ent->name) || + (a_ent->owner != b_ent->owner) || + (a_ent->ld_name != b_ent->ld_name) || + (a_ent->type != b_ent->type); } /* node_cmp_attr_Sel */ /** Compares the attributes of two Phi nodes. */