public class org.graalvm.compiler.phases.common.inlining.policy.GreedyInliningPolicy extends org.graalvm.compiler.phases.common.inlining.policy.AbstractInliningPolicy
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.phases.common.inlining.policy.GreedyInliningPolicy
super_class: org.graalvm.compiler.phases.common.inlining.policy.AbstractInliningPolicy
{
private static final org.graalvm.compiler.debug.DebugCounter inliningStoppedByMaxDesiredSizeCounter;
descriptor: Lorg/graalvm/compiler/debug/DebugCounter;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "InliningStoppedByMaxDesiredSize"
invokestatic org.graalvm.compiler.debug.Debug.counter:(Ljava/lang/CharSequence;)Lorg/graalvm/compiler/debug/DebugCounter;
putstatic org.graalvm.compiler.phases.common.inlining.policy.GreedyInliningPolicy.inliningStoppedByMaxDesiredSizeCounter:Lorg/graalvm/compiler/debug/DebugCounter;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.util.Map<org.graalvm.compiler.nodes.Invoke, java.lang.Double>);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.graalvm.compiler.phases.common.inlining.policy.AbstractInliningPolicy.<init>:(Ljava/util/Map;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/phases/common/inlining/policy/GreedyInliningPolicy;
0 2 1 hints Ljava/util/Map<Lorg/graalvm/compiler/nodes/Invoke;Ljava/lang/Double;>;
Signature: (Ljava/util/Map<Lorg/graalvm/compiler/nodes/Invoke;Ljava/lang/Double;>;)V
MethodParameters:
Name Flags
hints
public boolean continueInlining(org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.graalvm.compiler.phases.common.inlining.InliningUtil.getNodeCount:(Lorg/graalvm/compiler/nodes/StructuredGraph;)I
getstatic org.graalvm.compiler.core.common.GraalOptions.MaximumDesiredSize:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
if_icmplt 4
1: ldc "inlining is cut off by MaximumDesiredSize"
iconst_0
anewarray java.lang.Object
invokestatic org.graalvm.compiler.phases.common.inlining.InliningUtil.logInliningDecision:(Ljava/lang/String;[Ljava/lang/Object;)V
2: getstatic org.graalvm.compiler.phases.common.inlining.policy.GreedyInliningPolicy.inliningStoppedByMaxDesiredSizeCounter:Lorg/graalvm/compiler/debug/DebugCounter;
invokeinterface org.graalvm.compiler.debug.DebugCounter.increment:()V
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/phases/common/inlining/policy/GreedyInliningPolicy;
0 5 1 currentGraph Lorg/graalvm/compiler/nodes/StructuredGraph;
MethodParameters:
Name Flags
currentGraph
public boolean isWorthInlining(org.graalvm.compiler.nodes.spi.Replacements, org.graalvm.compiler.phases.common.inlining.walker.MethodInvocation, int, boolean);
descriptor: (Lorg/graalvm/compiler/nodes/spi/Replacements;Lorg/graalvm/compiler/phases/common/inlining/walker/MethodInvocation;IZ)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=18, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 2
invokevirtual org.graalvm.compiler.phases.common.inlining.walker.MethodInvocation.callee:()Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;
astore 5
start local 5 1: aload 2
invokevirtual org.graalvm.compiler.phases.common.inlining.walker.MethodInvocation.probability:()D
dstore 6
start local 6 2: aload 2
invokevirtual org.graalvm.compiler.phases.common.inlining.walker.MethodInvocation.relevance:()D
dstore 8
start local 8 3: getstatic org.graalvm.compiler.core.common.GraalOptions.InlineEverything:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 6
4: aload 5
iload 3
iload 4
ldc "inline everything"
iconst_0
anewarray java.lang.Object
invokestatic org.graalvm.compiler.phases.common.inlining.InliningUtil.logInlinedMethod:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;IZLjava/lang/String;[Ljava/lang/Object;)V
5: iconst_1
ireturn
6: StackMap locals: org.graalvm.compiler.phases.common.inlining.info.InlineInfo double double
StackMap stack:
aload 0
aload 1
aload 5
invokevirtual org.graalvm.compiler.phases.common.inlining.policy.GreedyInliningPolicy.isIntrinsic:(Lorg/graalvm/compiler/nodes/spi/Replacements;Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;)Z
ifeq 9
7: aload 5
iload 3
iload 4
ldc "intrinsic"
iconst_0
anewarray java.lang.Object
invokestatic org.graalvm.compiler.phases.common.inlining.InliningUtil.logInlinedMethod:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;IZLjava/lang/String;[Ljava/lang/Object;)V
8: iconst_1
ireturn
9: StackMap locals:
StackMap stack:
aload 5
invokeinterface org.graalvm.compiler.phases.common.inlining.info.InlineInfo.shouldInline:()Z
ifeq 12
10: aload 5
iload 3
iload 4
ldc "forced inlining"
iconst_0
anewarray java.lang.Object
invokestatic org.graalvm.compiler.phases.common.inlining.InliningUtil.logInlinedMethod:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;IZLjava/lang/String;[Ljava/lang/Object;)V
11: iconst_1
ireturn
12: StackMap locals:
StackMap stack:
aload 0
aload 5
invokevirtual org.graalvm.compiler.phases.common.inlining.policy.GreedyInliningPolicy.getInliningBonus:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;)D
dstore 10
start local 10 13: aload 5
invokeinterface org.graalvm.compiler.phases.common.inlining.info.InlineInfo.determineNodeCount:()I
istore 12
start local 12 14: aload 5
invokestatic org.graalvm.compiler.phases.common.inlining.policy.GreedyInliningPolicy.previousLowLevelGraphSize:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;)I
istore 13
start local 13 15: getstatic org.graalvm.compiler.core.common.GraalOptions.SmallCompiledLowLevelGraphSize:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
ifle 20
iload 13
i2d
getstatic org.graalvm.compiler.core.common.GraalOptions.SmallCompiledLowLevelGraphSize:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
i2d
dload 10
dmul
dcmpl
ifle 20
16: aload 5
iload 3
ldc "too large previous low-level graph (low-level-nodes: %d, relevance=%f, probability=%f, bonus=%f, nodes=%d)"
iconst_5
anewarray java.lang.Object
dup
iconst_0
iload 13
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
17: dload 8
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_2
dload 6
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_3
dload 10
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_4
iload 12
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
18: invokestatic org.graalvm.compiler.phases.common.inlining.InliningUtil.logNotInlinedMethod:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;ILjava/lang/String;[Ljava/lang/Object;)V
19: iconst_0
ireturn
20: StackMap locals: double int int
StackMap stack:
iload 12
i2d
getstatic org.graalvm.compiler.core.common.GraalOptions.TrivialInliningSize:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
i2d
dload 10
dmul
dcmpg
ifge 23
21: aload 5
iload 3
iload 4
ldc "trivial (relevance=%f, probability=%f, bonus=%f, nodes=%d)"
iconst_4
anewarray java.lang.Object
dup
iconst_0
dload 8
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_1
dload 6
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_2
dload 10
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_3
iload 12
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic org.graalvm.compiler.phases.common.inlining.InliningUtil.logInlinedMethod:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;IZLjava/lang/String;[Ljava/lang/Object;)V
22: iconst_1
ireturn
23: StackMap locals:
StackMap stack:
aload 5
invokestatic org.graalvm.compiler.phases.common.inlining.policy.GreedyInliningPolicy.determineInvokeProbability:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;)D
dstore 14
start local 14 24: getstatic org.graalvm.compiler.core.common.GraalOptions.LimitInlinedInvokes:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Double
invokevirtual java.lang.Double.doubleValue:()D
dconst_0
dcmpl
ifle 29
iload 4
ifeq 29
dload 14
getstatic org.graalvm.compiler.core.common.GraalOptions.LimitInlinedInvokes:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Double
invokevirtual java.lang.Double.doubleValue:()D
dload 10
dmul
dcmpl
ifle 29
25: aload 5
iload 3
ldc "callee invoke probability is too high (invokeP=%f, relevance=%f, probability=%f, bonus=%f, nodes=%d)"
iconst_5
anewarray java.lang.Object
dup
iconst_0
dload 14
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_1
dload 8
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_2
26: dload 6
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_3
dload 10
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_4
iload 12
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
27: invokestatic org.graalvm.compiler.phases.common.inlining.InliningUtil.logNotInlinedMethod:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;ILjava/lang/String;[Ljava/lang/Object;)V
28: iconst_0
ireturn
29: StackMap locals: double
StackMap stack:
aload 0
dload 8
getstatic org.graalvm.compiler.core.common.GraalOptions.MaximumInliningSize:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
i2d
dload 10
dmul
d2i
invokevirtual org.graalvm.compiler.phases.common.inlining.policy.GreedyInliningPolicy.computeMaximumSize:(DI)D
dstore 16
start local 16 30: iload 12
i2d
dload 16
dcmpg
ifgt 35
31: aload 5
iload 3
iload 4
ldc "relevance-based (relevance=%f, probability=%f, bonus=%f, nodes=%d <= %f)"
iconst_5
anewarray java.lang.Object
dup
iconst_0
dload 8
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_1
dload 6
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_2
dload 10
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_3
32: iload 12
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_4
dload 16
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
33: invokestatic org.graalvm.compiler.phases.common.inlining.InliningUtil.logInlinedMethod:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;IZLjava/lang/String;[Ljava/lang/Object;)V
34: iconst_1
ireturn
35: StackMap locals: double
StackMap stack:
aload 5
iload 3
ldc "relevance-based (relevance=%f, probability=%f, bonus=%f, nodes=%d > %f)"
iconst_5
anewarray java.lang.Object
dup
iconst_0
dload 8
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_1
dload 6
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_2
dload 10
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_3
iload 12
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_4
dload 16
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
invokestatic org.graalvm.compiler.phases.common.inlining.InliningUtil.logNotInlinedMethod:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;ILjava/lang/String;[Ljava/lang/Object;)V
36: iconst_0
ireturn
end local 16 end local 14 end local 13 end local 12 end local 10 end local 8 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Lorg/graalvm/compiler/phases/common/inlining/policy/GreedyInliningPolicy;
0 37 1 replacements Lorg/graalvm/compiler/nodes/spi/Replacements;
0 37 2 invocation Lorg/graalvm/compiler/phases/common/inlining/walker/MethodInvocation;
0 37 3 inliningDepth I
0 37 4 fullyProcessed Z
1 37 5 info Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;
2 37 6 probability D
3 37 8 relevance D
13 37 10 inliningBonus D
14 37 12 nodes I
15 37 13 lowLevelGraphSize I
24 37 14 invokes D
30 37 16 maximumNodes D
MethodParameters:
Name Flags
replacements
invocation
inliningDepth
fullyProcessed
}
SourceFile: "GreedyInliningPolicy.java"