X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fopt_polymorphy.c;h=48e8ac8bf3a9055635cbae4d98b8011bf64aa2af;hb=98c8808ee1d34300860bb78185558e1731a99368;hp=67ca5a9f4a64dc8ab812f84323d51c19024ca5ca;hpb=1714809afac25e69694b58423430c03f5af20228;p=libfirm diff --git a/ir/opt/opt_polymorphy.c b/ir/opt/opt_polymorphy.c index 67ca5a9f4..48e8ac8bf 100644 --- a/ir/opt/opt_polymorphy.c +++ b/ir/opt/opt_polymorphy.c @@ -5,7 +5,7 @@ * Author: * Created: * CVS-ID: $Id$ - * Copyright: (c) 2005 Universität Karlsruhe + * Copyright: (c) 2005 Universität Karlsruhe * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. */ @@ -55,7 +55,7 @@ ir_node *transform_node_Sel(ir_node *node) /* If the entity is a leave in the inheritance tree, we can replace the Sel by a constant. */ - if ((get_irp_phase_state() != phase_building) && (get_entity_n_overwrittenby(ent) == 0)) { + if (get_entity_n_overwrittenby(ent) == 0) { /* In dead code, we might call a leave entity that is a description. Do not turn the Sel to a SymConst. */ if (get_entity_peculiarity(ent) == peculiarity_description) { @@ -103,7 +103,7 @@ ir_node *transform_node_Sel(ir_node *node) * This function returns a node replacing the Proj(Load)[Value]. * If this is actually called in transform_node, we must build * a tuple, or replace the Projs of the load. - * Therefore we call this optimization in ldstopt. + * Therefore we call this optimization in ldstopt(). */ ir_node *transform_node_Load(ir_node *n) {