Connect no-op iropt to the driver logic.
git-svn-id: svn://svn.valgrind.org/vex/trunk@172 8f6e269a-dfd6-0310-a8e1-e2731360e62c
diff --git a/priv/main/vex_main.c b/priv/main/vex_main.c
index 752f20f..096d2e8 100644
--- a/priv/main/vex_main.c
+++ b/priv/main/vex_main.c
@@ -13,6 +13,7 @@
#include "host-generic/h_generic_regs.h"
#include "host-x86/hdefs.h"
#include "guest-x86/gdefs.h"
+#include "ir/iropt.h"
/* This file contains the top level interface to the library. */
@@ -171,6 +172,15 @@
}
sanityCheckIRBB(irbb, Ity_I32);
+ /* Clean it up, hopefully a lot. */
+ irbb = do_iropt_BB ( irbb );
+
+ if (vex_verbosity > 0) {
+ vex_printf("\n-------- After IR optimisation --------\n");
+ ppIRBB ( irbb );
+ vex_printf("\n");
+ }
+
/* Get the thing instrumented. */
if (instrument)
irbb = (*instrument)(irbb);