X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fopt%2Fldstopt.c;h=412686f3acd5312b7659d7dd99f2e30d1b71f074;hb=2198e37181132ff7ab566c94970c41e8c6b273c5;hp=27810dd76628bfab127306c7dcc6a7114b0398fd;hpb=f6b78c1b4c5885ac0c3e20ae0afca754cb3edbf9;p=libfirm diff --git a/ir/opt/ldstopt.c b/ir/opt/ldstopt.c index 27810dd76..412686f3a 100644 --- a/ir/opt/ldstopt.c +++ b/ir/opt/ldstopt.c @@ -782,8 +782,8 @@ static unsigned is_Call_pure(ir_node *call) /* try the called entity */ ir_node *ptr = get_Call_ptr(call); - if (is_Global(ptr)) { - ir_entity *ent = get_Global_entity(ptr); + if (is_SymConst_addr_ent(ptr)) { + ir_entity *ent = get_SymConst_entity(ptr); prop = get_entity_additional_properties(ent); } @@ -1887,7 +1887,7 @@ static void move_loads_out_of_loops(scc *pscc, loop_env *env) continue; /* for now, we can only move Load(Global) */ - if (! is_Global(ptr)) + if (! is_SymConst_addr_ent(ptr)) continue; load_mode = get_Load_mode(load); for (other = pscc->head; other != NULL; other = next_other) {