]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add handy way to disable iropt completely.
authorJulian Seward <jseward@acm.org>
Sat, 23 Oct 2004 00:22:32 +0000 (00:22 +0000)
committerJulian Seward <jseward@acm.org>
Sat, 23 Oct 2004 00:22:32 +0000 (00:22 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@400

VEX/priv/ir/iropt.c

index 9488acba100f31ae500f7e668bcf0af030ffecb2..6612b9d270120cb3b0aded65fcc39ed66a26545f 100644 (file)
@@ -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