]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make cse_BB globally visible, and rename to do_cse_BB, but don't use
authorJulian Seward <jseward@acm.org>
Thu, 11 Nov 2004 02:14:45 +0000 (02:14 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 11 Nov 2004 02:14:45 +0000 (02:14 +0000)
it for anything new.

git-svn-id: svn://svn.valgrind.org/vex/trunk@544

VEX/priv/ir/iropt.c
VEX/priv/ir/iropt.h

index af1c82846810171706c0fb849bbc6695bbfdd3af..9f692c91ca8d8927b6912327d083862592e70632 100644 (file)
@@ -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");
index 24e5bdecdfef799f77d794cb9e0f070846881ec5..ac5ff44c482b56c24fde7bc6d2e740916680de60 100644 (file)
@@ -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