projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improved Cmp(x, 0) optimizations
[libfirm]
/
ir
/
opt
/
tailrec.c
diff --git
a/ir/opt/tailrec.c
b/ir/opt/tailrec.c
index
e0e9aa8
..
a5e4938
100644
(file)
--- a/
ir/opt/tailrec.c
+++ b/
ir/opt/tailrec.c
@@
-632,10
+632,10
@@
int opt_tail_rec_irg(ir_graph *irg) {
/* check if it's a recursive call */
call_ptr = get_Call_ptr(call);
/* check if it's a recursive call */
call_ptr = get_Call_ptr(call);
- if (! is_
SymConst_addr_ent
(call_ptr))
+ if (! is_
Global
(call_ptr))
continue;
continue;
- ent = get_
SymConst
_entity(call_ptr);
+ ent = get_
Global
_entity(call_ptr);
if (!ent || get_entity_irg(ent) != irg)
continue;
if (!ent || get_entity_irg(ent) != irg)
continue;