X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbepeephole.h;h=34fafab1f865d7ddf677f4191f96ccd0f2f06ca9;hb=255a9cc77e3cdf878406d722cf8414063c87e99b;hp=af02f347865c91b4dcaeabbec9d46086691ffa79;hpb=39cb52264857d7c21c7141ba82bb55adaa78064d;p=libfirm diff --git a/ir/be/bepeephole.h b/ir/be/bepeephole.h index af02f3478..34fafab1f 100644 --- a/ir/be/bepeephole.h +++ b/ir/be/bepeephole.h @@ -62,7 +62,7 @@ void be_peephole_new_node(ir_node *nw); void be_peephole_exchange(ir_node *old, ir_node *nw); /** - * Tries to optimize a beIncSp node with it's previous IncSP node. + * Tries to optimize a beIncSp node with its previous IncSP node. * Must be run from a be_peephole_opt() context. * * @param node a be_IncSP node @@ -71,6 +71,8 @@ void be_peephole_exchange(ir_node *old, ir_node *nw); */ ir_node *be_peephole_IncSP_IncSP(ir_node *node); +bool be_has_only_one_user(ir_node *node); + /** * Do peephole optimisations. It traverses the schedule of all blocks in * backward direction. The register_values variable indicates which (live) @@ -79,6 +81,6 @@ ir_node *be_peephole_IncSP_IncSP(ir_node *node); * backend specific optimisations should be performed based on the * register-liveness information. */ -void be_peephole_opt(be_irg_t *birg); +void be_peephole_opt(ir_graph *irg); #endif