X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Ftailrec.h;h=0c553c9c56051d9d1200f08d2af0dee0367e3c47;hb=f1a1a6092d9e4ebd9e22dd1c57d76ef8aeda74fc;hp=880d554a31206b2d35a18ecf792d7a6b60bd8845;hpb=f749cd4f6a4acea1670fa6d59b1dcb2c137586d9;p=libfirm diff --git a/ir/opt/tailrec.h b/ir/opt/tailrec.h index 880d554a3..0c553c9c5 100644 --- 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. * + * 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.