X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fproc_cloning.h;h=c530dd25909bf3a63ac9019236731ca74a07fff2;hb=f274dcf35aa0d3f4748387dbddfe50e8d7d44951;hp=2f514786bda1aca2183d5d50dccc3d3e73f00c2f;hpb=0f2cd50621b42aa82a0c3201cc6260d28f5b0fd0;p=libfirm diff --git a/ir/opt/proc_cloning.h b/ir/opt/proc_cloning.h index 2f514786b..c530dd259 100644 --- a/ir/opt/proc_cloning.h +++ b/ir/opt/proc_cloning.h @@ -13,12 +13,19 @@ #include "firm_types.h" +/** A default threshold. */ +#define DEFAULT_CLONE_THRESHOLD 300 + /** - * Do the procedure cloning. Evaluate a heuristic weight for every - * call(..., Const, ...). If the weight is bigger than threshold, + * Do procedure cloning. Evaluate a heuristic weight for every + * Call(..., Const, ...). If the weight is bigger than threshold, * clone the entity and fix the calls. * * @param threshold the threshold for cloning + * + * The threshold is an estimation of how many instructions are saved + * when executing a cloned method. If threshold is 0.0, every possible + * call is cloned. */ void proc_cloning(float threshold);