projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding assertion to prevent recursive compound types
[libfirm]
/
ir
/
opt
/
tailrec.h
diff --git
a/ir/opt/tailrec.h
b/ir/opt/tailrec.h
index
880d554
..
0c553c9
100644
(file)
--- a/
ir/opt/tailrec.h
+++ b/
ir/opt/tailrec.h
@@
-26,9
+26,13
@@
* Optimizes simple tail-recursion calls by
* converting them into loops. Depends on the flag opt_tail_recursion.
*
* Optimizes simple tail-recursion calls by
* converting them into loops. Depends on the flag opt_tail_recursion.
*
+ * Does not work for Calls that use the exception stuff.
+ *
* @param irg the graph to be optimized
* @param irg the graph to be optimized
+ *
+ * @return non-zero if the optimization could be applied, 0 else
*/
*/
-
void
opt_tail_rec_irg(ir_graph *irg);
+
int
opt_tail_rec_irg(ir_graph *irg);
/*
* Optimize tail-recursion calls for all IR-Graphs.
/*
* Optimize tail-recursion calls for all IR-Graphs.