projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
critical_edges: set NO_CRITICAL_EDGES graph flag
[libfirm]
/
ir
/
opt
/
ldstopt.c
diff --git
a/ir/opt/ldstopt.c
b/ir/opt/ldstopt.c
index
27810dd
..
412686f
100644
(file)
--- 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);
/* 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);
}
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) */
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) {
continue;
load_mode = get_Load_mode(load);
for (other = pscc->head; other != NULL; other = next_other) {