From 27ffaa54278ea571cb4b8d0d2556360f57b909b5 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 5 Sep 2008 18:50:32 +0000 Subject: [PATCH] don't compare attributes but their addresses [r21730] --- ir/ir/iropt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ir/ir/iropt.c b/ir/ir/iropt.c index 359b500e1..37b5b87d0 100644 --- a/ir/ir/iropt.c +++ b/ir/ir/iropt.c @@ -5744,12 +5744,17 @@ static int node_cmp_attr_Call(ir_node *a, ir_node *b) { static int node_cmp_attr_Sel(ir_node *a, ir_node *b) { const ir_entity *a_ent = get_Sel_entity(a); const ir_entity *b_ent = get_Sel_entity(b); +#if 0 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); +#endif + /* Matze: inlining of functions can produce 2 entities with same type, + * name, etc. */ + return a_ent != b_ent; } /* node_cmp_attr_Sel */ /** Compares the attributes of two Phi nodes. */ -- 2.20.1