From: Julian Seward Date: Wed, 20 Oct 2004 23:14:42 +0000 (+0000) Subject: Re-enable most IR optimisations. It's only really redundant-Put X-Git-Tag: svn/VALGRIND_3_0_1^2~940 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8e056baf3ee2ea823e49523a95d6ae76f608c8d;p=thirdparty%2Fvalgrind.git Re-enable most IR optimisations. It's only really redundant-Put elimination which is causing a problem right now and so is disabled; tree-building is also potentially dodgy. git-svn-id: svn://svn.valgrind.org/vex/trunk@394 --- diff --git a/VEX/priv/guest-x86/toIR.c b/VEX/priv/guest-x86/toIR.c index 69e170e49a..8aee1acadc 100644 --- a/VEX/priv/guest-x86/toIR.c +++ b/VEX/priv/guest-x86/toIR.c @@ -127,7 +127,7 @@ IRBB* bbToIR_X86Instr ( UChar* x86code, DisResult dres; static Int n_resteers = 0; Int d_resteers = 0; - Int resteerBelow = 0; //10; /* the threshold value */ + Int resteerBelow = 10; /* the threshold value */ /* Set up globals. */ host_is_bigendian = host_bigendian; diff --git a/VEX/priv/ir/iropt.c b/VEX/priv/ir/iropt.c index eb2fb2d849..3d0b88f308 100644 --- a/VEX/priv/ir/iropt.c +++ b/VEX/priv/ir/iropt.c @@ -3022,13 +3022,13 @@ IRBB* cheap_transformations ( vex_printf("\n========= REDUNDANT GET\n\n" ); ppIRBB(bb); } - +#if 0 redundant_put_removal_BB ( bb ); if (iropt_verbose) { vex_printf("\n========= REDUNDANT PUT\n\n" ); ppIRBB(bb); } - +#endif bb = cprop_BB ( bb ); if (iropt_verbose) { vex_printf("\n========= CPROPD\n\n" ); @@ -3138,7 +3138,6 @@ IRBB* do_iropt_BB ( IRBB* bb0, Bool show_res = False; Bool do_expensive; -return bb0; IRBB *bb, *bb2; n_total++; @@ -3190,7 +3189,7 @@ return bb0; /* Finally, rebuild trees, for the benefit of instruction selection. */ - + dead_BB(bb); treebuild_BB( bb ); if (show_res || iropt_verbose) { vex_printf("\n========= TREEd \n\n" );