From: Julian Seward Date: Thu, 11 Nov 2004 02:14:45 +0000 (+0000) Subject: Make cse_BB globally visible, and rename to do_cse_BB, but don't use X-Git-Tag: svn/VALGRIND_3_0_1^2~790 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75844675bc3ac14238b98ea8a08c478b73a7c7ed;p=thirdparty%2Fvalgrind.git Make cse_BB globally visible, and rename to do_cse_BB, but don't use it for anything new. git-svn-id: svn://svn.valgrind.org/vex/trunk@544 --- diff --git a/VEX/priv/ir/iropt.c b/VEX/priv/ir/iropt.c index af1c828468..9f692c91ca 100644 --- a/VEX/priv/ir/iropt.c +++ b/VEX/priv/ir/iropt.c @@ -2150,7 +2150,7 @@ static AvailExpr* irExpr_to_AvailExpr ( IRExpr* e ) /* The BB is modified in-place. */ -static void cse_BB ( IRBB* bb ) +void do_cse_BB ( IRBB* bb ) { Int i, j; IRTemp t, q; @@ -3193,7 +3193,7 @@ IRBB* cheap_transformations ( static IRBB* expensive_transformations( IRBB* bb ) { - cse_BB( bb ); + do_cse_BB( bb ); collapse_AddSub_chains_BB( bb ); do_PutI_GetI_forwarding_BB( bb ); do_redundant_PutI_elimination( bb ); @@ -3323,7 +3323,7 @@ IRBB* do_iropt_BB ( IRBB* bb0, bb = cheap_transformations( bb, specHelper, preciseMemExnsFn ); } else { /* at least do CSE and dead code removal */ - cse_BB( bb ); + do_cse_BB( bb ); do_deadcode_BB( bb ); } if (0) vex_printf("vex iropt: unrolled a loop\n"); diff --git a/VEX/priv/ir/iropt.h b/VEX/priv/ir/iropt.h index 24e5bdecdf..ac5ff44c48 100644 --- a/VEX/priv/ir/iropt.h +++ b/VEX/priv/ir/iropt.h @@ -27,6 +27,10 @@ IRBB* cprop_BB ( IRBB* ); extern void do_deadcode_BB ( IRBB* bb ); +/* Do a CSE pass. bb is destructively modified. */ +extern +void do_cse_BB ( IRBB* bb ); + /* The tree-builder. Make maximal safe trees. bb is destructively modified. */ extern