From: Julian Seward Date: Sat, 23 Oct 2004 00:22:32 +0000 (+0000) Subject: Add handy way to disable iropt completely. X-Git-Tag: svn/VALGRIND_3_0_1^2~934 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80459949934b8848b7cccead0acb92938273ef02;p=thirdparty%2Fvalgrind.git Add handy way to disable iropt completely. git-svn-id: svn://svn.valgrind.org/vex/trunk@400 --- diff --git a/VEX/priv/ir/iropt.c b/VEX/priv/ir/iropt.c index 9488acba10..6612b9d270 100644 --- a/VEX/priv/ir/iropt.c +++ b/VEX/priv/ir/iropt.c @@ -13,6 +13,9 @@ #include "main/vex_util.h" #include "ir/iropt.h" +/* Set to 1 to completely disable iropt, for drastic debugging. */ +#define DISABLE_IROPT 0 + /* Set to 1 for lots of debugging output. */ #define DEBUG_IROPT 0 @@ -22,7 +25,6 @@ disable the unroller. */ #define UNROLL_TARGET 120 -//#define UNROLL_TARGET 0 /* Set to 1 to get details of loop unrolling. */ #define UNROLL_VERBOSE 0 @@ -3175,6 +3177,9 @@ IRBB* do_iropt_BB ( IRBB* bb0, Bool do_expensive; IRBB *bb, *bb2; + /* Completely disable iropt? */ + if (DISABLE_IROPT) return bb0; + n_total++; /* First flatten the block out, since all other