A new alternative of scalar_replacement. The implementation isn't completed."
[libfirm] / ir / opt / tailrec.h
index 880d554..0c553c9 100644 (file)
  * 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
+ *
+ * @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.