public final class org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase extends org.graalvm.compiler.lir.alloc.lsra.LinearScanAllocationPhase
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.alloc.lsra.LinearScanAllocationPhase
{
private static final org.graalvm.compiler.debug.CounterKey betterSpillPos;
descriptor: Lorg/graalvm/compiler/debug/CounterKey;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.graalvm.compiler.debug.CounterKey betterSpillPosWithLowerProbability;
descriptor: Lorg/graalvm/compiler/debug/CounterKey;
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
private org.graalvm.compiler.debug.DebugContext debug;
descriptor: Lorg/graalvm/compiler/debug/DebugContext;
flags: (0x0002) ACC_PRIVATE
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.DebugContext.counter:(Ljava/lang/CharSequence;)Lorg/graalvm/compiler/debug/CounterKey;
putstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.betterSpillPos:Lorg/graalvm/compiler/debug/CounterKey;
4: ldc "BetterSpillPositionWithLowerProbability"
invokestatic org.graalvm.compiler.debug.DebugContext.counter:(Ljava/lang/CharSequence;)Lorg/graalvm/compiler/debug/CounterKey;
putstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.betterSpillPosWithLowerProbability:Lorg/graalvm/compiler/debug/CounterKey;
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.alloc.lsra.LinearScanAllocationPhase.<init>:()V
1: aload 0
aload 1
putfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
2: aload 0
aload 1
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.getDebug:()Lorg/graalvm/compiler/debug/DebugContext;
putfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.debug:Lorg/graalvm/compiler/debug/DebugContext;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/lir/alloc/lsra/LinearScanOptimizeSpillPositionPhase;
0 4 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
aload 2
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.optimizeSpillPosition:(Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;)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(org.graalvm.compiler.lir.gen.LIRGenerationResult);
descriptor: (Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=10, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
aconst_null
astore 3
1: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.debug:Lorg/graalvm/compiler/debug/DebugContext;
ldc "OptimizeSpillPositions"
invokevirtual org.graalvm.compiler.debug.DebugContext.logAndIndent:(Ljava/lang/String;)Lorg/graalvm/compiler/debug/Indent;
astore 4
start local 4 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 5
start local 5 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 9
arraylength
istore 8
iconst_0
istore 7
goto 7
StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase org.graalvm.compiler.lir.gen.LIRGenerationResult 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 9
iload 7
aaload
astore 6
start local 6 5: aload 0
aload 5
aload 6
aload 1
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.optimizeInterval:([Lorg/graalvm/compiler/lir/LIRInsertionBuffer;Lorg/graalvm/compiler/lir/alloc/lsra/Interval;Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;)V
end local 6 6: iinc 7 1
StackMap locals:
StackMap stack:
7: iload 7
iload 8
if_icmplt 4
8: aload 5
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 14
StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase org.graalvm.compiler.lir.gen.LIRGenerationResult 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 9
iload 7
aaload
astore 6
start local 6 10: aload 6
ifnull 13
11: getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.$assertionsDisabled:Z
ifne 12
aload 6
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 org.graalvm.compiler.lir.gen.LIRGenerationResult 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 6
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.finish:()V
end local 6 13: StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase org.graalvm.compiler.lir.gen.LIRGenerationResult 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 7 1
StackMap locals:
StackMap stack:
14: iload 7
iload 8
if_icmplt 9
end local 5 15: aload 4
ifnull 21
aload 4
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
goto 21
StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase org.graalvm.compiler.lir.gen.LIRGenerationResult java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent
StackMap stack: java.lang.Throwable
16: astore 2
aload 4
ifnull 17
aload 4
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
end local 4 StackMap locals:
StackMap stack:
17: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
18: astore 3
aload 2
ifnonnull 19
aload 3
astore 2
goto 20
StackMap locals:
StackMap stack:
19: aload 2
aload 3
if_acmpeq 20
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
20: aload 2
athrow
21: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lorg/graalvm/compiler/lir/alloc/lsra/LinearScanOptimizeSpillPositionPhase;
0 22 1 res Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;
2 17 4 indent0 Lorg/graalvm/compiler/debug/Indent;
3 15 5 insertionBuffers [Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
5 6 6 interval Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
10 13 6 insertionBuffer Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
Exception table:
from to target type
2 15 16 any
1 18 18 any
MethodParameters:
Name Flags
res
private void optimizeInterval(org.graalvm.compiler.lir.LIRInsertionBuffer[], org.graalvm.compiler.lir.alloc.lsra.Interval, org.graalvm.compiler.lir.gen.LIRGenerationResult);
descriptor: ([Lorg/graalvm/compiler/lir/LIRInsertionBuffer;Lorg/graalvm/compiler/lir/alloc/lsra/Interval;Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=15, args_size=4
start local 0 start local 1 start local 2 start local 3 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 4
start local 4 3: aconst_null
astore 5
start local 5 4: aconst_null
astore 6
start local 6 5: aconst_null
astore 7
aconst_null
astore 8
6: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.debug:Lorg/graalvm/compiler/debug/DebugContext;
ldc "interval %s (%s)"
aload 2
aload 4
invokevirtual org.graalvm.compiler.debug.DebugContext.logAndIndent:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/graalvm/compiler/debug/Indent;
astore 9
start local 9 7: aload 2
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.getSplitChildren:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 11
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.lir.gen.LIRGenerationResult 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 11
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.lir.alloc.lsra.Interval
astore 10
start local 10 9: aload 10
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 6
ifnull 11
aload 10
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.from:()I
aload 6
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.lir.gen.LIRGenerationResult 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 10
astore 6
12: goto 14
13: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.$assertionsDisabled:Z
ifne 14
aload 6
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.from:()I
aload 10
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 10
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 13
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.lir.gen.LIRGenerationResult 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 13
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.core.common.cfg.AbstractBlockBase
astore 12
start local 12 16: aload 4
aload 12
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: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.debug:Lorg/graalvm/compiler/debug/DebugContext;
ldc "Split interval %s, block %s"
aload 10
aload 12
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
18: aload 5
ifnonnull 21
19: aload 12
astore 5
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.lir.gen.LIRGenerationResult 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 5
aload 12
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 5
22: getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.$assertionsDisabled:Z
ifne 23
aload 5
ifnonnull 23
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 12 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.lir.gen.LIRGenerationResult 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 13
invokeinterface java.util.Iterator.hasNext:()Z
ifne 15
end local 10 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.lir.gen.LIRGenerationResult 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 11
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
25: aload 5
ifnonnull 30
26: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.debug:Lorg/graalvm/compiler/debug/DebugContext;
ldc "not spill interval found"
invokevirtual org.graalvm.compiler.debug.DebugContext.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 9
ifnull 29
aload 9
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.lir.gen.LIRGenerationResult 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:
aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.debug:Lorg/graalvm/compiler/debug/DebugContext;
iconst_3
ldc "Spill block candidate (initial): %s"
aload 5
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(ILjava/lang/String;Ljava/lang/Object;)V
31: aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getLoopDepth:()I
aload 5
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getLoopDepth:()I
if_icmpge 33
32: aload 4
aload 5
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 5
33: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.debug:Lorg/graalvm/compiler/debug/DebugContext;
iconst_3
ldc "Spill block candidate (after loop optimizaton): %s"
aload 5
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(ILjava/lang/String;Ljava/lang/Object;)V
34: getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.$assertionsDisabled:Z
ifne 35
aload 6
ifnonnull 35
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
35: StackMap locals:
StackMap stack:
aload 4
aload 5
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 40
aload 5
aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
aload 6
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 5
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getDominator:()Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
astore 10
start local 10 37: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.debug:Lorg/graalvm/compiler/debug/DebugContext;
invokevirtual org.graalvm.compiler.debug.DebugContext.isLogEnabled:()Z
ifeq 39
38: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.debug:Lorg/graalvm/compiler/debug/DebugContext;
ldc "Spill block (%s) is the beginning of a spill child -> use dominator (%s)"
aload 5
aload 10
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
39: StackMap locals: org.graalvm.compiler.core.common.cfg.AbstractBlockBase
StackMap stack:
aload 10
astore 5
end local 10 40: StackMap locals:
StackMap stack:
aload 4
aload 5
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 45
41: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.debug:Lorg/graalvm/compiler/debug/DebugContext;
iconst_3
ldc "Definition is the best choice: %s"
aload 4
invokevirtual org.graalvm.compiler.debug.DebugContext.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 9
ifnull 44
aload 9
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 4
aload 5
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/CounterKey;
aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.debug:Lorg/graalvm/compiler/debug/DebugContext;
invokeinterface org.graalvm.compiler.debug.CounterKey.increment:(Lorg/graalvm/compiler/debug/DebugContext;)V
47: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.debug:Lorg/graalvm/compiler/debug/DebugContext;
invokevirtual org.graalvm.compiler.debug.DebugContext.isLogEnabled:()Z
ifeq 49
48: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.debug:Lorg/graalvm/compiler/debug/DebugContext;
ldc "Better spill position found (Block %s)"
aload 5
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(Ljava/lang/String;Ljava/lang/Object;)V
49: StackMap locals:
StackMap stack:
aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.probability:()D
aload 5
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.probability:()D
dcmpg
ifgt 56
50: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.debug:Lorg/graalvm/compiler/debug/DebugContext;
iconst_3
ldc "Definition has lower probability %s (%f) is lower than spill block %s (%f)"
aload 4
aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.probability:()D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aload 5
51: aload 5
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.probability:()D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
52: invokevirtual org.graalvm.compiler.debug.DebugContext.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 9
ifnull 55
aload 9
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
55: StackMap locals:
StackMap stack:
return
56: StackMap locals:
StackMap stack:
aload 1
aload 5
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getId:()I
aaload
astore 10
start local 10 57: aload 10
ifnonnull 61
58: new org.graalvm.compiler.lir.LIRInsertionBuffer
dup
invokespecial org.graalvm.compiler.lir.LIRInsertionBuffer.<init>:()V
astore 10
59: aload 1
aload 5
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getId:()I
aload 10
aastore
60: aload 10
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 5
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 5
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.getFirstLirInstructionId:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;)I
istore 11
start local 11 62: aload 2
iload 11
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 12
start local 12 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 13
start local 13 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 13
aload 12
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 14
start local 14 65: aload 14
aload 3
ldc "LSRAOptimizeSpillPos: optimize spill pos"
invokevirtual org.graalvm.compiler.lir.LIRInstruction.setComment:(Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;Ljava/lang/String;)V
66: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.debug:Lorg/graalvm/compiler/debug/DebugContext;
iconst_3
ldc "Insert spill move %s"
aload 14
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(ILjava/lang/String;Ljava/lang/Object;)V
67: aload 14
bipush -2
invokevirtual org.graalvm.compiler.lir.LIRInstruction.setId:(I)V
68: aload 10
iconst_1
aload 14
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.append:(ILorg/graalvm/compiler/lir/LIRInstruction;)V
69: getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.betterSpillPosWithLowerProbability:Lorg/graalvm/compiler/debug/CounterKey;
aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase.debug:Lorg/graalvm/compiler/debug/DebugContext;
invokeinterface org.graalvm.compiler.debug.CounterKey.increment:(Lorg/graalvm/compiler/debug/DebugContext;)V
70: aload 2
iload 11
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.setSpillDefinitionPos:(I)V
end local 14 end local 13 end local 12 end local 11 end local 10 71: aload 9
ifnull 77
aload 9
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
goto 77
StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanOptimizeSpillPositionPhase org.graalvm.compiler.lir.LIRInsertionBuffer[] org.graalvm.compiler.lir.alloc.lsra.Interval org.graalvm.compiler.lir.gen.LIRGenerationResult 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
72: astore 7
aload 9
ifnull 73
aload 9
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
end local 9 StackMap locals:
StackMap stack:
73: aload 7
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
74: astore 8
aload 7
ifnonnull 75
aload 8
astore 7
goto 76
StackMap locals:
StackMap stack:
75: aload 7
aload 8
if_acmpeq 76
aload 7
aload 8
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
76: aload 7
athrow
77: StackMap locals:
StackMap stack:
return
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 78 0 this Lorg/graalvm/compiler/lir/alloc/lsra/LinearScanOptimizeSpillPositionPhase;
0 78 1 insertionBuffers [Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
0 78 2 interval Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
0 78 3 res Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;
3 78 4 defBlock Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;
4 78 5 spillBlock Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;
5 78 6 firstSpillChild Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
7 73 9 indent Lorg/graalvm/compiler/debug/Indent;
9 24 10 splitChild Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
16 23 12 splitBlock Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;
37 40 10 dom Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;
57 71 10 insertionBuffer Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
62 71 11 spillOpId I
63 71 12 fromLocation Ljdk/vm/ci/meta/AllocatableValue;
64 71 13 toLocation Ljdk/vm/ci/meta/AllocatableValue;
65 71 14 move Lorg/graalvm/compiler/lir/LIRInstruction;
Exception table:
from to target type
7 28 72 any
30 43 72 any
45 54 72 any
56 71 72 any
6 29 74 any
30 44 74 any
45 55 74 any
56 74 74 any
MethodParameters:
Name Flags
insertionBuffers
interval
res
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
}
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