changeset 6538:d1ba5ba4f484

Merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 09 Oct 2012 14:06:26 +0200
parents 14c952ec53a3 (diff) 845b13a1c4a7 (current diff)
children 2463eb24b644
files
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.loop/src/com/oracle/graal/loop/LoopEx.java	Tue Oct 09 13:34:25 2012 +0200
+++ b/graal/com.oracle.graal.loop/src/com/oracle/graal/loop/LoopEx.java	Tue Oct 09 14:06:26 2012 +0200
@@ -130,7 +130,9 @@
             }
             BinaryNode result = BinaryNode.reassociate(binary, invariant);
             if (result != binary) {
-                Debug.log(MetaUtil.format("%H::%n", Debug.contextLookup(ResolvedJavaMethod.class)) + " : Reassociated %s into %s", binary, result);
+                if (Debug.isLogEnabled()) {
+                    Debug.log(MetaUtil.format("%H::%n", Debug.contextLookup(ResolvedJavaMethod.class)) + " : Reassociated %s into %s", binary, result);
+                }
                 graph.replaceFloating(binary, result);
             }
         }