public final class org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase extends org.graalvm.compiler.lir.phases.AllocationPhase
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase
super_class: org.graalvm.compiler.lir.phases.AllocationPhase
{
private static final org.graalvm.compiler.debug.DebugCounter betterSpillPos;
descriptor: Lorg/graalvm/compiler/debug/DebugCounter;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.graalvm.compiler.debug.DebugCounter betterSpillPosWithLowerProbability;
descriptor: Lorg/graalvm/compiler/debug/DebugCounter;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final org.graalvm.compiler.lir.alloc.lsra.LinearScan allocator;
descriptor: Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/lir/alloc/lsra/LinearScanOptimizeSpillPositionPhase;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.$assertionsDisabled:Z
3: ldc "BetterSpillPosition"
invokestatic org.graalvm.compiler.debug.Debug.counter:(Ljava/lang/CharSequence;)Lorg/graalvm/compiler/debug/DebugCounter;
putstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.betterSpillPos:Lorg/graalvm/compiler/debug/DebugCounter;
4: ldc "BetterSpillPositionWithLowerProbability"
invokestatic org.graalvm.compiler.debug.Debug.counter:(Ljava/lang/CharSequence;)Lorg/graalvm/compiler/debug/DebugCounter;
putstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.betterSpillPosWithLowerProbability:Lorg/graalvm/compiler/debug/DebugCounter;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(org.graalvm.compiler.lir.alloc.lsra.LinearScan);
descriptor: (Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.graalvm.compiler.lir.phases.AllocationPhase.<init>:()V
1: aload 0
aload 1
putfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/lir/alloc/lsra/LinearScanOptimizeSpillPositionPhase;
0 3 1 allocator Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
MethodParameters:
Name Flags
allocator
protected void run(jdk.vm.ci.code.TargetDescription, org.graalvm.compiler.lir.gen.LIRGenerationResult, org.graalvm.compiler.lir.phases.AllocationPhase$AllocationContext);
descriptor: (Ljdk/vm/ci/code/TargetDescription;Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;Lorg/graalvm/compiler/lir/phases/AllocationPhase$AllocationContext;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.optimizeSpillPosition:()V
1: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
ldc "After optimize spill position"
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.printIntervals:(Ljava/lang/String;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/lir/alloc/lsra/LinearScanOptimizeSpillPositionPhase;
0 3 1 target Ljdk/vm/ci/code/TargetDescription;
0 3 2 lirGenRes Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;
0 3 3 context Lorg/graalvm/compiler/lir/phases/AllocationPhase$AllocationContext;
MethodParameters:
Name Flags
target
lirGenRes
context
private void optimizeSpillPosition();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=9, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: ldc "OptimizeSpillPositions"
invokestatic org.graalvm.compiler.debug.Debug.logAndIndent:(Ljava/lang/String;)Lorg/graalvm/compiler/debug/Indent;
astore 3
start local 3 2: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.getLIR:()Lorg/graalvm/compiler/lir/LIR;
invokevirtual org.graalvm.compiler.lir.LIR.linearScanOrder:()[Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
arraylength
anewarray org.graalvm.compiler.lir.LIRInsertionBuffer
astore 4
start local 4 3: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.intervals:()[Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 7
StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent org.graalvm.compiler.lir.LIRInsertionBuffer[] top int int org.graalvm.compiler.lir.alloc.lsra.Interval[]
StackMap stack:
4: aload 8
iload 6
aaload
astore 5
start local 5 5: aload 0
aload 4
aload 5
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.optimizeInterval:([Lorg/graalvm/compiler/lir/LIRInsertionBuffer;Lorg/graalvm/compiler/lir/alloc/lsra/Interval;)V
end local 5 6: iinc 6 1
StackMap locals:
StackMap stack:
7: iload 6
iload 7
if_icmplt 4
8: aload 4
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 14
StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent org.graalvm.compiler.lir.LIRInsertionBuffer[] top int int org.graalvm.compiler.lir.LIRInsertionBuffer[]
StackMap stack:
9: aload 8
iload 6
aaload
astore 5
start local 5 10: aload 5
ifnull 13
11: getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.$assertionsDisabled:Z
ifne 12
aload 5
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.initialized:()Z
ifne 12
new java.lang.AssertionError
dup
ldc "Insertion buffer is nonnull but not initialized!"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
12: StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent org.graalvm.compiler.lir.LIRInsertionBuffer[] org.graalvm.compiler.lir.LIRInsertionBuffer int int org.graalvm.compiler.lir.LIRInsertionBuffer[]
StackMap stack:
aload 5
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.finish:()V
end local 5 13: StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent org.graalvm.compiler.lir.LIRInsertionBuffer[] top int int org.graalvm.compiler.lir.LIRInsertionBuffer[]
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
14: iload 6
iload 7
if_icmplt 9
end local 4 15: aload 3
ifnull 21
aload 3
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
goto 21
StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent
StackMap stack: java.lang.Throwable
16: astore 1
aload 3
ifnull 17
aload 3
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
end local 3 StackMap locals:
StackMap stack:
17: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
18: astore 2
aload 1
ifnonnull 19
aload 2
astore 1
goto 20
StackMap locals:
StackMap stack:
19: aload 1
aload 2
if_acmpeq 20
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
20: aload 1
athrow
21: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lorg/graalvm/compiler/lir/alloc/lsra/LinearScanOptimizeSpillPositionPhase;
2 17 3 indent0 Lorg/graalvm/compiler/debug/Indent;
3 15 4 insertionBuffers [Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
5 6 5 interval Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
10 13 5 insertionBuffer Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
Exception table:
from to target type
2 15 16 any
1 18 18 any
private void optimizeInterval(org.graalvm.compiler.lir.LIRInsertionBuffer[], org.graalvm.compiler.lir.alloc.lsra.Interval);
descriptor: ([Lorg/graalvm/compiler/lir/LIRInsertionBuffer;Lorg/graalvm/compiler/lir/alloc/lsra/Interval;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=14, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 1
aload 2
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.isSplitParent:()Z
ifeq 1
aload 2
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.spillState:()Lorg/graalvm/compiler/lir/alloc/lsra/Interval$SpillState;
getstatic org.graalvm.compiler.lir.alloc.lsra.Interval$SpillState.SpillInDominator:Lorg/graalvm/compiler/lir/alloc/lsra/Interval$SpillState;
if_acmpeq 2
1: StackMap locals:
StackMap stack:
return
2: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
aload 2
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.spillDefinitionPos:()I
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.blockForId:(I)Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
astore 3
start local 3 3: aconst_null
astore 4
start local 4 4: aconst_null
astore 5
start local 5 5: aconst_null
astore 6
aconst_null
astore 7
6: ldc "interval %s (%s)"
aload 2
aload 3
invokestatic org.graalvm.compiler.debug.Debug.logAndIndent:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/graalvm/compiler/debug/Indent;
astore 8
start local 8 7: aload 2
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.getSplitChildren:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 10
goto 24
StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase org.graalvm.compiler.lir.LIRInsertionBuffer[] org.graalvm.compiler.lir.alloc.lsra.Interval org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.lir.alloc.lsra.Interval java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent top java.util.Iterator
StackMap stack:
8: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.lir.alloc.lsra.Interval
astore 9
start local 9 9: aload 9
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.location:()Ljdk/vm/ci/meta/AllocatableValue;
invokestatic org.graalvm.compiler.lir.LIRValueUtil.isStackSlotValue:(Ljdk/vm/ci/meta/Value;)Z
ifeq 24
10: aload 5
ifnull 11
aload 9
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.from:()I
aload 5
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.from:()I
if_icmpge 13
11: StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase org.graalvm.compiler.lir.LIRInsertionBuffer[] org.graalvm.compiler.lir.alloc.lsra.Interval org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.lir.alloc.lsra.Interval java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent org.graalvm.compiler.lir.alloc.lsra.Interval java.util.Iterator
StackMap stack:
aload 9
astore 5
12: goto 14
13: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.$assertionsDisabled:Z
ifne 14
aload 5
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.from:()I
aload 9
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.from:()I
if_icmplt 14
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
14: StackMap locals:
StackMap stack:
aload 0
aload 9
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.blocksForInterval:(Lorg/graalvm/compiler/lir/alloc/lsra/Interval;)Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 12
goto 23
StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase org.graalvm.compiler.lir.LIRInsertionBuffer[] org.graalvm.compiler.lir.alloc.lsra.Interval org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.lir.alloc.lsra.Interval java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent org.graalvm.compiler.lir.alloc.lsra.Interval java.util.Iterator top java.util.Iterator
StackMap stack:
15: aload 12
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.core.common.cfg.AbstractBlockBase
astore 11
start local 11 16: aload 3
aload 11
invokestatic org.graalvm.compiler.core.common.cfg.AbstractControlFlowGraph.dominates:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;)Z
ifeq 23
17: ldc "Split interval %s, block %s"
aload 9
aload 11
invokestatic org.graalvm.compiler.debug.Debug.log:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
18: aload 4
ifnonnull 21
19: aload 11
astore 4
20: goto 23
21: StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase org.graalvm.compiler.lir.LIRInsertionBuffer[] org.graalvm.compiler.lir.alloc.lsra.Interval org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.lir.alloc.lsra.Interval java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent org.graalvm.compiler.lir.alloc.lsra.Interval java.util.Iterator org.graalvm.compiler.core.common.cfg.AbstractBlockBase java.util.Iterator
StackMap stack:
aload 4
aload 11
invokestatic org.graalvm.compiler.core.common.cfg.AbstractControlFlowGraph.commonDominator:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;)Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
astore 4
22: getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.$assertionsDisabled:Z
ifne 23
aload 4
ifnonnull 23
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 11 23: StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase org.graalvm.compiler.lir.LIRInsertionBuffer[] org.graalvm.compiler.lir.alloc.lsra.Interval org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.lir.alloc.lsra.Interval java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent org.graalvm.compiler.lir.alloc.lsra.Interval java.util.Iterator top java.util.Iterator
StackMap stack:
aload 12
invokeinterface java.util.Iterator.hasNext:()Z
ifne 15
end local 9 24: StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase org.graalvm.compiler.lir.LIRInsertionBuffer[] org.graalvm.compiler.lir.alloc.lsra.Interval org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.lir.alloc.lsra.Interval java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent top java.util.Iterator
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
25: aload 4
ifnonnull 30
26: ldc "not spill interval found"
invokestatic org.graalvm.compiler.debug.Debug.log:(Ljava/lang/String;)V
27: aload 2
getstatic org.graalvm.compiler.lir.alloc.lsra.Interval$SpillState.StoreAtDefinition:Lorg/graalvm/compiler/lir/alloc/lsra/Interval$SpillState;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.setSpillState:(Lorg/graalvm/compiler/lir/alloc/lsra/Interval$SpillState;)V
28: aload 8
ifnull 29
aload 8
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
29: StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase org.graalvm.compiler.lir.LIRInsertionBuffer[] org.graalvm.compiler.lir.alloc.lsra.Interval org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.lir.alloc.lsra.Interval java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent
StackMap stack:
return
30: StackMap locals:
StackMap stack:
iconst_3
ldc "Spill block candidate (initial): %s"
aload 4
invokestatic org.graalvm.compiler.debug.Debug.log:(ILjava/lang/String;Ljava/lang/Object;)V
31: aload 3
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getLoopDepth:()I
aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getLoopDepth:()I
if_icmpge 33
32: aload 3
aload 4
invokestatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.moveSpillOutOfLoop:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;)Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
astore 4
33: StackMap locals:
StackMap stack:
iconst_3
ldc "Spill block candidate (after loop optimizaton): %s"
aload 4
invokestatic org.graalvm.compiler.debug.Debug.log:(ILjava/lang/String;Ljava/lang/Object;)V
34: getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.$assertionsDisabled:Z
ifne 35
aload 5
ifnonnull 35
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
35: StackMap locals:
StackMap stack:
aload 3
aload 4
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 40
aload 4
aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
aload 5
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.from:()I
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.blockForId:(I)Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 40
36: aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getDominator:()Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
astore 9
start local 9 37: invokestatic org.graalvm.compiler.debug.Debug.isLogEnabled:()Z
ifeq 39
38: ldc "Spill block (%s) is the beginning of a spill child -> use dominator (%s)"
aload 4
aload 9
invokestatic org.graalvm.compiler.debug.Debug.log:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
39: StackMap locals: org.graalvm.compiler.core.common.cfg.AbstractBlockBase
StackMap stack:
aload 9
astore 4
end local 9 40: StackMap locals:
StackMap stack:
aload 3
aload 4
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 45
41: iconst_3
ldc "Definition is the best choice: %s"
aload 3
invokestatic org.graalvm.compiler.debug.Debug.log:(ILjava/lang/String;Ljava/lang/Object;)V
42: aload 2
getstatic org.graalvm.compiler.lir.alloc.lsra.Interval$SpillState.StoreAtDefinition:Lorg/graalvm/compiler/lir/alloc/lsra/Interval$SpillState;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.setSpillState:(Lorg/graalvm/compiler/lir/alloc/lsra/Interval$SpillState;)V
43: aload 8
ifnull 44
aload 8
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
44: StackMap locals:
StackMap stack:
return
45: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.$assertionsDisabled:Z
ifne 46
aload 3
aload 4
invokestatic org.graalvm.compiler.core.common.cfg.AbstractControlFlowGraph.dominates:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;)Z
ifne 46
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
46: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.betterSpillPos:Lorg/graalvm/compiler/debug/DebugCounter;
invokeinterface org.graalvm.compiler.debug.DebugCounter.increment:()V
47: invokestatic org.graalvm.compiler.debug.Debug.isLogEnabled:()Z
ifeq 49
48: ldc "Better spill position found (Block %s)"
aload 4
invokestatic org.graalvm.compiler.debug.Debug.log:(Ljava/lang/String;Ljava/lang/Object;)V
49: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.probability:()D
aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.probability:()D
dcmpg
ifgt 56
50: iconst_3
ldc "Definition has lower probability %s (%f) is lower than spill block %s (%f)"
aload 3
aload 3
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.probability:()D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aload 4
51: aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.probability:()D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
52: invokestatic org.graalvm.compiler.debug.Debug.log:(ILjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
53: aload 2
getstatic org.graalvm.compiler.lir.alloc.lsra.Interval$SpillState.StoreAtDefinition:Lorg/graalvm/compiler/lir/alloc/lsra/Interval$SpillState;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.setSpillState:(Lorg/graalvm/compiler/lir/alloc/lsra/Interval$SpillState;)V
54: aload 8
ifnull 55
aload 8
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
55: StackMap locals:
StackMap stack:
return
56: StackMap locals:
StackMap stack:
aload 1
aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getId:()I
aaload
astore 9
start local 9 57: aload 9
ifnonnull 61
58: new org.graalvm.compiler.lir.LIRInsertionBuffer
dup
invokespecial org.graalvm.compiler.lir.LIRInsertionBuffer.<init>:()V
astore 9
59: aload 1
aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getId:()I
aload 9
aastore
60: aload 9
aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.getLIR:()Lorg/graalvm/compiler/lir/LIR;
aload 4
invokevirtual org.graalvm.compiler.lir.LIR.getLIRforBlock:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;)Ljava/util/ArrayList;
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.init:(Ljava/util/List;)V
61: StackMap locals: org.graalvm.compiler.lir.LIRInsertionBuffer
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
aload 4
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.getFirstLirInstructionId:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;)I
istore 10
start local 10 62: aload 2
iload 10
getstatic org.graalvm.compiler.lir.LIRInstruction$OperandMode.DEF:Lorg/graalvm/compiler/lir/LIRInstruction$OperandMode;
aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.getSplitChildAtOpId:(ILorg/graalvm/compiler/lir/LIRInstruction$OperandMode;Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;)Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.location:()Ljdk/vm/ci/meta/AllocatableValue;
astore 11
start local 11 63: aload 2
invokestatic org.graalvm.compiler.lir.alloc.lsra.LinearScan.canonicalSpillOpr:(Lorg/graalvm/compiler/lir/alloc/lsra/Interval;)Ljdk/vm/ci/meta/AllocatableValue;
astore 12
start local 12 64: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.getSpillMoveFactory:()Lorg/graalvm/compiler/lir/gen/LIRGeneratorTool$MoveFactory;
aload 12
aload 11
invokeinterface org.graalvm.compiler.lir.gen.LIRGeneratorTool$MoveFactory.createMove:(Ljdk/vm/ci/meta/AllocatableValue;Ljdk/vm/ci/meta/Value;)Lorg/graalvm/compiler/lir/LIRInstruction;
astore 13
start local 13 65: iconst_3
ldc "Insert spill move %s"
aload 13
invokestatic org.graalvm.compiler.debug.Debug.log:(ILjava/lang/String;Ljava/lang/Object;)V
66: aload 13
bipush -2
invokevirtual org.graalvm.compiler.lir.LIRInstruction.setId:(I)V
67: aload 9
iconst_1
aload 13
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.append:(ILorg/graalvm/compiler/lir/LIRInstruction;)V
68: getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.betterSpillPosWithLowerProbability:Lorg/graalvm/compiler/debug/DebugCounter;
invokeinterface org.graalvm.compiler.debug.DebugCounter.increment:()V
69: aload 2
iload 10
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.setSpillDefinitionPos:(I)V
end local 13 end local 12 end local 11 end local 10 end local 9 70: aload 8
ifnull 76
aload 8
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
goto 76
StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase org.graalvm.compiler.lir.LIRInsertionBuffer[] org.graalvm.compiler.lir.alloc.lsra.Interval org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.lir.alloc.lsra.Interval java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent
StackMap stack: java.lang.Throwable
71: astore 6
aload 8
ifnull 72
aload 8
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
end local 8 StackMap locals:
StackMap stack:
72: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
73: astore 7
aload 6
ifnonnull 74
aload 7
astore 6
goto 75
StackMap locals:
StackMap stack:
74: aload 6
aload 7
if_acmpeq 75
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
75: aload 6
athrow
76: StackMap locals:
StackMap stack:
return
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 77 0 this Lorg/graalvm/compiler/lir/alloc/lsra/LinearScanOptimizeSpillPositionPhase;
0 77 1 insertionBuffers [Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
0 77 2 interval Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
3 77 3 defBlock Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;
4 77 4 spillBlock Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;
5 77 5 firstSpillChild Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
7 72 8 indent Lorg/graalvm/compiler/debug/Indent;
9 24 9 splitChild Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
16 23 11 splitBlock Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;
37 40 9 dom Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;
57 70 9 insertionBuffer Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
62 70 10 spillOpId I
63 70 11 fromLocation Ljdk/vm/ci/meta/AllocatableValue;
64 70 12 toLocation Ljdk/vm/ci/meta/AllocatableValue;
65 70 13 move Lorg/graalvm/compiler/lir/LIRInstruction;
Exception table:
from to target type
7 28 71 any
30 43 71 any
45 54 71 any
56 70 71 any
6 29 73 any
30 44 73 any
45 55 73 any
56 73 73 any
MethodParameters:
Name Flags
insertionBuffers
interval
private java.lang.Iterable<org.graalvm.compiler.core.common.cfg.AbstractBlockBase<?>> blocksForInterval(org.graalvm.compiler.lir.alloc.lsra.Interval);
descriptor: (Lorg/graalvm/compiler/lir/alloc/lsra/Interval;)Ljava/lang/Iterable;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase$1
dup
aload 0
aload 1
invokespecial org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase$1.<init>:(Lorg/graalvm/compiler/lir/alloc/lsra/LinearScanOptimizeSpillPositionPhase;Lorg/graalvm/compiler/lir/alloc/lsra/Interval;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/alloc/lsra/LinearScanOptimizeSpillPositionPhase;
0 1 1 interval Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
Signature: (Lorg/graalvm/compiler/lir/alloc/lsra/Interval;)Ljava/lang/Iterable<Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;>;
MethodParameters:
Name Flags
interval
private static org.graalvm.compiler.core.common.cfg.AbstractBlockBase<?> moveSpillOutOfLoop(org.graalvm.compiler.core.common.cfg.AbstractBlockBase<?>, org.graalvm.compiler.core.common.cfg.AbstractBlockBase<?>);
descriptor: (Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;)Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getLoopDepth:()I
istore 2
start local 2 1: aload 1
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getDominator:()Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
astore 3
start local 3 2: goto 8
3: StackMap locals: int org.graalvm.compiler.core.common.cfg.AbstractBlockBase
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.$assertionsDisabled:Z
ifne 4
aload 3
ifnonnull 4
new java.lang.AssertionError
dup
ldc "spill block not dominated by definition block?"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
4: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getLoopDepth:()I
iload 2
if_icmpgt 7
5: getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.$assertionsDisabled:Z
ifne 6
aload 3
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getLoopDepth:()I
iload 2
if_icmpeq 6
new java.lang.AssertionError
dup
ldc "Cannot spill an interval outside of the loop where it is defined!"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
6: StackMap locals:
StackMap stack:
aload 3
areturn
7: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getDominator:()Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
astore 3
StackMap locals:
StackMap stack:
8: aload 0
aload 3
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 3
end local 3 9: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 defBlock Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;
0 10 1 spillBlock Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;
1 10 2 defLoopDepth I
2 9 3 block Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;
Signature: (Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;)Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;
MethodParameters:
Name Flags
defBlock
spillBlock
protected void run(jdk.vm.ci.code.TargetDescription, org.graalvm.compiler.lir.gen.LIRGenerationResult, java.lang.Object);
descriptor: (Ljdk/vm/ci/code/TargetDescription;Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;Ljava/lang/Object;)V
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
0: aload 0
aload 1
aload 2
aload 3
checkcast org.graalvm.compiler.lir.phases.AllocationPhase$AllocationContext
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.run:(Ljdk/vm/ci/code/TargetDescription;Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;Lorg/graalvm/compiler/lir/phases/AllocationPhase$AllocationContext;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "LinearScanOptimizeSpillPositionPhase.java"
NestMembers:
org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase$1 org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase$IntervalBlockIterator
InnerClasses:
public final OperandMode = org.graalvm.compiler.lir.LIRInstruction$OperandMode of org.graalvm.compiler.lir.LIRInstruction
public final SpillState = org.graalvm.compiler.lir.alloc.lsra.Interval$SpillState of org.graalvm.compiler.lir.alloc.lsra.Interval
org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase$1
private IntervalBlockIterator = org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase$IntervalBlockIterator of org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase
public abstract MoveFactory = org.graalvm.compiler.lir.gen.LIRGeneratorTool$MoveFactory of org.graalvm.compiler.lir.gen.LIRGeneratorTool
public final AllocationContext = org.graalvm.compiler.lir.phases.AllocationPhase$AllocationContext of org.graalvm.compiler.lir.phases.AllocationPhase