hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/match/MatchStatement.java
changeset 46344 694c102fd8ed
parent 43972 1ade39b8381b
child 46640 70bdce04c59b
--- a/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/match/MatchStatement.java	Mon Dec 12 16:16:27 2016 +0300
+++ b/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/match/MatchStatement.java	Wed Mar 22 13:42:45 2017 -0700
@@ -103,12 +103,12 @@
             }
             // The pattern matched but some other code generation constraint disallowed code
             // generation for the pattern.
-            if (LogVerbose.getValue()) {
+            if (LogVerbose.getValue(node.getOptions())) {
                 Debug.log("while matching %s|%s %s %s returned null", context.getRoot().toString(Verbosity.Id), context.getRoot().getClass().getSimpleName(), getName(), generatorMethod.getName());
                 Debug.log("with nodes %s", formatMatch(node));
             }
         } else {
-            if (LogVerbose.getValue() && result.code != MatchResultCode.WRONG_CLASS) {
+            if (LogVerbose.getValue(node.getOptions()) && result.code != MatchResultCode.WRONG_CLASS) {
                 Debug.log("while matching %s|%s %s %s", context.getRoot().toString(Verbosity.Id), context.getRoot().getClass().getSimpleName(), getName(), result);
             }
         }