* src/vm/jit/jit.c (jit_compile_intern) [ENABLE_PROFILING]: Call
authortwisti <none@none>
Fri, 2 Feb 2007 00:20:56 +0000 (00:20 +0000)
committertwisti <none@none>
Fri, 2 Feb 2007 00:20:56 +0000 (00:20 +0000)
reorder only when profiling.

src/vm/jit/jit.c

index 1bb3b9a2b2725064078b734bc41c03db1147aa9d..ef18e1646bee50e07819af4c8cac27931b3196b6 100644 (file)
@@ -22,7 +22,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: jit.c 7274 2007-02-02 00:10:37Z twisti $
+   $Id: jit.c 7275 2007-02-02 00:20:56Z twisti $
 
 */
 
@@ -1420,6 +1420,7 @@ static u1 *jit_compile_intern(jitdata *jd)
                }
 #endif
 
+#if defined(ENABLE_PROFILING)
                /* Basic block reordering.  I think this should be done after
                   if-conversion, as we could lose the ability to do the
                   if-conversion. */
@@ -1429,6 +1430,7 @@ static u1 *jit_compile_intern(jitdata *jd)
                                return NULL;
                        jit_renumber_basicblocks(jd);
                }
+#endif
 
                DEBUG_JIT_COMPILEVERBOSE("Allocating registers: ");