diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/StandardGraphBuilderPlugins.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/StandardGraphBuilderPlugins.java index cfd551a4a559..b09ce98fa0fc 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/StandardGraphBuilderPlugins.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/StandardGraphBuilderPlugins.java @@ -226,6 +226,7 @@ import jdk.graal.compiler.replacements.nodes.arithmetic.UnsignedMulHighNode; import jdk.graal.compiler.serviceprovider.JavaVersionUtil; import jdk.graal.compiler.serviceprovider.SpeculationReasonGroup; +import jdk.vm.ci.amd64.AMD64; import jdk.vm.ci.code.Architecture; import jdk.vm.ci.code.BytecodePosition; import jdk.vm.ci.code.CodeUtil; @@ -2615,6 +2616,11 @@ public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Rec return true; } } + + @Override + public boolean isGraalOnly() { + return JavaVersionUtil.JAVA_SPEC == 21 && arch instanceof AMD64; + } }); }