public class org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase extends org.graalvm.compiler.lir.alloc.lsra.LinearScanAllocationPhase
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase
super_class: org.graalvm.compiler.lir.alloc.lsra.LinearScanAllocationPhase
{
private static final org.graalvm.compiler.lir.alloc.lsra.LinearScan$IntervalPredicate mustStoreAtDefinition;
descriptor: Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan$IntervalPredicate;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
protected final org.graalvm.compiler.lir.alloc.lsra.LinearScan allocator;
descriptor: Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
flags: (0x0014) ACC_PROTECTED, 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=2, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/lir/alloc/lsra/LinearScanEliminateSpillMovePhase;
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.LinearScanEliminateSpillMovePhase.$assertionsDisabled:Z
3: new org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase$1
dup
invokespecial org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase$1.<init>:()V
putstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.mustStoreAtDefinition:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan$IntervalPredicate;
4: return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(org.graalvm.compiler.lir.alloc.lsra.LinearScan);
descriptor: (Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;)V
flags: (0x0004) ACC_PROTECTED
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.LinearScanEliminateSpillMovePhase.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/LinearScanEliminateSpillMovePhase;
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
aload 2
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.eliminateSpillMoves:(Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/lir/alloc/lsra/LinearScanEliminateSpillMovePhase;
0 2 1 target Ljdk/vm/ci/code/TargetDescription;
0 2 2 lirGenRes Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;
0 2 3 context Lorg/graalvm/compiler/lir/phases/AllocationPhase$AllocationContext;
MethodParameters:
Name Flags
target
lirGenRes
context
protected int firstInstructionOfInterest();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/alloc/lsra/LinearScanEliminateSpillMovePhase;
void eliminateSpillMoves(org.graalvm.compiler.lir.gen.LIRGenerationResult);
descriptor: (Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;)V
flags: (0x0000)
Code:
stack=7, locals=23, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.getDebug:()Lorg/graalvm/compiler/debug/DebugContext;
astore 2
start local 2 1: aconst_null
astore 3
aconst_null
astore 4
2: aload 2
ldc "Eliminating unnecessary spill moves"
invokevirtual org.graalvm.compiler.debug.DebugContext.logAndIndent:(Ljava/lang/String;)Lorg/graalvm/compiler/debug/Indent;
astore 5
start local 5 3: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.mustStoreAtDefinition:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan$IntervalPredicate;
aconst_null
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.createUnhandledLists:(Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan$IntervalPredicate;Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan$IntervalPredicate;)Lorg/graalvm/util/Pair;
invokevirtual org.graalvm.util.Pair.getLeft:()Ljava/lang/Object;
checkcast org.graalvm.compiler.lir.alloc.lsra.Interval
astore 6
start local 6 4: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.getOptions:()Lorg/graalvm/compiler/options/OptionValues;
invokestatic org.graalvm.compiler.debug.Assertions.detailedAssertionsEnabled:(Lorg/graalvm/compiler/options/OptionValues;)Z
ifeq 6
5: aload 2
aload 6
invokestatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.checkIntervals:(Lorg/graalvm/compiler/debug/DebugContext;Lorg/graalvm/compiler/lir/alloc/lsra/Interval;)V
6: StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase org.graalvm.compiler.lir.gen.LIRGenerationResult org.graalvm.compiler.debug.DebugContext java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent org.graalvm.compiler.lir.alloc.lsra.Interval
StackMap stack:
new org.graalvm.compiler.lir.LIRInsertionBuffer
dup
invokespecial org.graalvm.compiler.lir.LIRInsertionBuffer.<init>:()V
astore 7
start local 7 7: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.sortedBlocks:()[Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
dup
astore 11
arraylength
istore 10
iconst_0
istore 9
goto 61
StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase org.graalvm.compiler.lir.gen.LIRGenerationResult org.graalvm.compiler.debug.DebugContext java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent org.graalvm.compiler.lir.alloc.lsra.Interval org.graalvm.compiler.lir.LIRInsertionBuffer top int int org.graalvm.compiler.core.common.cfg.AbstractBlockBase[]
StackMap stack:
8: aload 11
iload 9
aaload
astore 8
start local 8 9: aconst_null
astore 12
aconst_null
astore 13
10: aload 2
ldc "Handle %s"
aload 8
invokevirtual org.graalvm.compiler.debug.DebugContext.logAndIndent:(Ljava/lang/String;Ljava/lang/Object;)Lorg/graalvm/compiler/debug/Indent;
astore 14
start local 14 11: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.getLIR:()Lorg/graalvm/compiler/lir/LIR;
aload 8
invokevirtual org.graalvm.compiler.lir.LIR.getLIRforBlock:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;)Ljava/util/ArrayList;
astore 15
start local 15 12: aload 15
invokevirtual java.util.ArrayList.size:()I
istore 16
start local 16 13: aload 0
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.firstInstructionOfInterest:()I
istore 17
start local 17 14: goto 51
15: StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase org.graalvm.compiler.lir.gen.LIRGenerationResult org.graalvm.compiler.debug.DebugContext java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent org.graalvm.compiler.lir.alloc.lsra.Interval org.graalvm.compiler.lir.LIRInsertionBuffer org.graalvm.compiler.core.common.cfg.AbstractBlockBase int int org.graalvm.compiler.core.common.cfg.AbstractBlockBase[] java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent java.util.ArrayList int int
StackMap stack:
aload 15
iload 17
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast org.graalvm.compiler.lir.LIRInstruction
astore 18
start local 18 16: aload 18
invokevirtual org.graalvm.compiler.lir.LIRInstruction.id:()I
istore 19
start local 19 17: iload 19
iconst_m1
if_icmpne 31
18: aload 18
invokestatic org.graalvm.compiler.lir.StandardOp$MoveOp.asMoveOp:(Lorg/graalvm/compiler/lir/LIRInstruction;)Lorg/graalvm/compiler/lir/StandardOp$MoveOp;
astore 20
start local 20 19: getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase$Options.LIROptLSRAEliminateSpillMoves:Lorg/graalvm/compiler/options/OptionKey;
aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.getOptions:()Lorg/graalvm/compiler/options/OptionValues;
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 50
aload 0
aload 8
aload 20
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.canEliminateSpillMove:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Lorg/graalvm/compiler/lir/StandardOp$MoveOp;)Z
ifeq 50
20: aload 2
invokevirtual org.graalvm.compiler.debug.DebugContext.isLogEnabled:()Z
ifeq 29
21: aload 18
invokestatic org.graalvm.compiler.lir.StandardOp$ValueMoveOp.isValueMoveOp:(Lorg/graalvm/compiler/lir/LIRInstruction;)Z
ifeq 27
22: aload 18
invokestatic org.graalvm.compiler.lir.StandardOp$ValueMoveOp.asValueMoveOp:(Lorg/graalvm/compiler/lir/LIRInstruction;)Lorg/graalvm/compiler/lir/StandardOp$ValueMoveOp;
astore 21
start local 21 23: aload 2
ldc "eliminating move from interval %d (%s) to %d (%s) in block %s"
aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
aload 21
invokeinterface org.graalvm.compiler.lir.StandardOp$ValueMoveOp.getInput:()Ljdk/vm/ci/meta/AllocatableValue;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.operandNumber:(Ljdk/vm/ci/meta/Value;)I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 21
invokeinterface org.graalvm.compiler.lir.StandardOp$ValueMoveOp.getInput:()Ljdk/vm/ci/meta/AllocatableValue;
24: aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
aload 21
invokeinterface org.graalvm.compiler.lir.StandardOp$ValueMoveOp.getResult:()Ljdk/vm/ci/meta/AllocatableValue;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.operandNumber:(Ljdk/vm/ci/meta/Value;)I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 21
invokeinterface org.graalvm.compiler.lir.StandardOp$ValueMoveOp.getResult:()Ljdk/vm/ci/meta/AllocatableValue;
aload 8
25: invokevirtual org.graalvm.compiler.debug.DebugContext.log:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
end local 21 26: goto 29
27: StackMap locals: org.graalvm.compiler.lir.LIRInstruction int org.graalvm.compiler.lir.StandardOp$MoveOp
StackMap stack:
aload 18
invokestatic org.graalvm.compiler.lir.StandardOp$LoadConstantOp.asLoadConstantOp:(Lorg/graalvm/compiler/lir/LIRInstruction;)Lorg/graalvm/compiler/lir/StandardOp$LoadConstantOp;
astore 21
start local 21 28: aload 2
ldc "eliminating constant load from %s to %d (%s) in block %s"
aload 21
invokeinterface org.graalvm.compiler.lir.StandardOp$LoadConstantOp.getConstant:()Ljdk/vm/ci/meta/Constant;
aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
aload 21
invokeinterface org.graalvm.compiler.lir.StandardOp$LoadConstantOp.getResult:()Ljdk/vm/ci/meta/AllocatableValue;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.operandNumber:(Ljdk/vm/ci/meta/Value;)I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 21
invokeinterface org.graalvm.compiler.lir.StandardOp$LoadConstantOp.getResult:()Ljdk/vm/ci/meta/AllocatableValue;
aload 8
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
end local 21 29: StackMap locals:
StackMap stack:
aload 15
iload 17
aconst_null
invokevirtual java.util.ArrayList.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
end local 20 30: goto 50
31: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.$assertionsDisabled:Z
ifne 32
aload 6
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.isEndMarker:()Z
ifne 32
aload 6
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.spillDefinitionPos:()I
iload 19
if_icmpge 32
new java.lang.AssertionError
dup
ldc "invalid order"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
32: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.$assertionsDisabled:Z
ifne 49
aload 6
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.isEndMarker:()Z
ifne 49
aload 6
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.isSplitParent:()Z
ifeq 33
aload 6
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.StoreAtDefinition:Lorg/graalvm/compiler/lir/alloc/lsra/Interval$SpillState;
if_acmpeq 49
StackMap locals:
StackMap stack:
33: new java.lang.AssertionError
dup
ldc "invalid interval"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
34: StackMap locals:
StackMap stack:
aload 6
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.canMaterialize:()Z
ifne 48
35: aload 7
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.initialized:()Z
ifne 37
36: aload 7
aload 15
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.init:(Ljava/util/List;)V
37: StackMap locals:
StackMap stack:
aload 6
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.location:()Ljdk/vm/ci/meta/AllocatableValue;
astore 20
start local 20 38: aload 6
invokestatic org.graalvm.compiler.lir.alloc.lsra.LinearScan.canonicalSpillOpr:(Lorg/graalvm/compiler/lir/alloc/lsra/Interval;)Ljdk/vm/ci/meta/AllocatableValue;
astore 21
start local 21 39: aload 20
aload 21
invokevirtual jdk.vm.ci.meta.AllocatableValue.equals:(Ljava/lang/Object;)Z
ifne 48
40: getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.$assertionsDisabled:Z
ifne 42
aload 20
invokestatic jdk.vm.ci.code.ValueUtil.isRegister:(Ljdk/vm/ci/meta/Value;)Z
ifne 42
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "from operand must be a register but is: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 20
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " toLocation="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 21
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " spillState="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
41: aload 6
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.spillState:()Lorg/graalvm/compiler/lir/alloc/lsra/Interval$SpillState;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
42: StackMap locals: jdk.vm.ci.meta.AllocatableValue jdk.vm.ci.meta.AllocatableValue
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.$assertionsDisabled:Z
ifne 43
aload 21
invokestatic org.graalvm.compiler.lir.LIRValueUtil.isStackSlotValue:(Ljdk/vm/ci/meta/Value;)Z
ifne 43
new java.lang.AssertionError
dup
ldc "to operand must be a stack slot"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
43: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.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 21
aload 20
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 22
start local 22 44: aload 7
iload 17
iconst_1
iadd
aload 22
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.append:(ILorg/graalvm/compiler/lir/LIRInstruction;)V
45: aload 22
aload 1
ldc "LSRAEliminateSpillMove: store at definition"
invokevirtual org.graalvm.compiler.lir.LIRInstruction.setComment:(Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;Ljava/lang/String;)V
46: aload 2
invokevirtual org.graalvm.compiler.debug.DebugContext.isLogEnabled:()Z
ifeq 48
47: aload 2
ldc "inserting move after definition of interval %d to stack slot %s at opId %d"
aload 6
getfield org.graalvm.compiler.lir.alloc.lsra.Interval.operandNumber:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 6
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.spillSlot:()Ljdk/vm/ci/meta/AllocatableValue;
iload 19
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
end local 22 end local 21 end local 20 48: StackMap locals:
StackMap stack:
aload 6
getfield org.graalvm.compiler.lir.alloc.lsra.Interval.next:Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
astore 6
49: StackMap locals:
StackMap stack:
aload 6
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.isEndMarker:()Z
ifne 50
aload 6
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.spillDefinitionPos:()I
iload 19
if_icmpeq 34
end local 19 end local 18 50: StackMap locals:
StackMap stack:
iinc 17 1
StackMap locals:
StackMap stack:
51: iload 17
iload 16
if_icmplt 15
end local 17 52: aload 7
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.initialized:()Z
ifeq 54
53: aload 7
invokevirtual org.graalvm.compiler.lir.LIRInsertionBuffer.finish:()V
end local 16 end local 15 54: StackMap locals:
StackMap stack:
aload 14
ifnull 60
aload 14
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
goto 60
StackMap locals:
StackMap stack: java.lang.Throwable
55: astore 12
aload 14
ifnull 56
aload 14
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
end local 14 StackMap locals:
StackMap stack:
56: aload 12
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
57: astore 13
aload 12
ifnonnull 58
aload 13
astore 12
goto 59
StackMap locals:
StackMap stack:
58: aload 12
aload 13
if_acmpeq 59
aload 12
aload 13
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
59: aload 12
athrow
end local 8 60: StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase org.graalvm.compiler.lir.gen.LIRGenerationResult org.graalvm.compiler.debug.DebugContext java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent org.graalvm.compiler.lir.alloc.lsra.Interval org.graalvm.compiler.lir.LIRInsertionBuffer top int int org.graalvm.compiler.core.common.cfg.AbstractBlockBase[]
StackMap stack:
iinc 9 1
StackMap locals:
StackMap stack:
61: iload 9
iload 10
if_icmplt 8
62: getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.$assertionsDisabled:Z
ifne 63
aload 6
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.isEndMarker:()Z
ifne 63
new java.lang.AssertionError
dup
ldc "missed an interval"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 7 end local 6 63: StackMap locals: org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase org.graalvm.compiler.lir.gen.LIRGenerationResult org.graalvm.compiler.debug.DebugContext java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Indent
StackMap stack:
aload 5
ifnull 69
aload 5
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
goto 69
StackMap locals:
StackMap stack: java.lang.Throwable
64: astore 3
aload 5
ifnull 65
aload 5
invokeinterface org.graalvm.compiler.debug.Indent.close:()V
end local 5 StackMap locals:
StackMap stack:
65: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
66: astore 4
aload 3
ifnonnull 67
aload 4
astore 3
goto 68
StackMap locals:
StackMap stack:
67: aload 3
aload 4
if_acmpeq 68
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
68: aload 3
athrow
69: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 70 0 this Lorg/graalvm/compiler/lir/alloc/lsra/LinearScanEliminateSpillMovePhase;
0 70 1 res Lorg/graalvm/compiler/lir/gen/LIRGenerationResult;
1 70 2 debug Lorg/graalvm/compiler/debug/DebugContext;
3 65 5 indent Lorg/graalvm/compiler/debug/Indent;
4 63 6 interval Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
7 63 7 insertionBuffer Lorg/graalvm/compiler/lir/LIRInsertionBuffer;
9 60 8 block Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;
11 56 14 indent1 Lorg/graalvm/compiler/debug/Indent;
12 54 15 instructions Ljava/util/ArrayList<Lorg/graalvm/compiler/lir/LIRInstruction;>;
13 54 16 numInst I
14 52 17 j I
16 50 18 op Lorg/graalvm/compiler/lir/LIRInstruction;
17 50 19 opId I
19 30 20 move Lorg/graalvm/compiler/lir/StandardOp$MoveOp;
23 26 21 vmove Lorg/graalvm/compiler/lir/StandardOp$ValueMoveOp;
28 29 21 load Lorg/graalvm/compiler/lir/StandardOp$LoadConstantOp;
38 48 20 fromLocation Ljdk/vm/ci/meta/AllocatableValue;
39 48 21 toLocation Ljdk/vm/ci/meta/AllocatableValue;
44 48 22 move Lorg/graalvm/compiler/lir/LIRInstruction;
Exception table:
from to target type
11 54 55 any
10 57 57 any
3 63 64 any
2 66 66 any
MethodParameters:
Name Flags
res
protected boolean canEliminateSpillMove(org.graalvm.compiler.core.common.cfg.AbstractBlockBase<?>, org.graalvm.compiler.lir.StandardOp$MoveOp);
descriptor: (Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Lorg/graalvm/compiler/lir/StandardOp$MoveOp;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.$assertionsDisabled:Z
ifne 1
aload 2
invokeinterface org.graalvm.compiler.lir.StandardOp$MoveOp.getResult:()Ljdk/vm/ci/meta/AllocatableValue;
invokestatic org.graalvm.compiler.lir.LIRValueUtil.isVariable:(Ljdk/vm/ci/meta/Value;)Z
ifne 1
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "LinearScan inserts only moves to variables: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.allocator:Lorg/graalvm/compiler/lir/alloc/lsra/LinearScan;
aload 2
invokeinterface org.graalvm.compiler.lir.StandardOp$MoveOp.getResult:()Ljdk/vm/ci/meta/AllocatableValue;
invokevirtual org.graalvm.compiler.lir.alloc.lsra.LinearScan.intervalFor:(Ljdk/vm/ci/meta/Value;)Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
astore 3
start local 3 2: aload 3
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.location:()Ljdk/vm/ci/meta/AllocatableValue;
invokestatic jdk.vm.ci.code.ValueUtil.isRegister:(Ljdk/vm/ci/meta/Value;)Z
ifne 5
aload 3
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.alwaysInMemory:()Z
ifeq 5
3: getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.$assertionsDisabled:Z
ifne 4
aload 3
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
ifne 4
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "Not a stack slot: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.location:()Ljdk/vm/ci/meta/AllocatableValue;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
4: StackMap locals: org.graalvm.compiler.lir.alloc.lsra.Interval
StackMap stack:
iconst_1
ireturn
5: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/compiler/lir/alloc/lsra/LinearScanEliminateSpillMovePhase;
0 6 1 block Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;
0 6 2 move Lorg/graalvm/compiler/lir/StandardOp$MoveOp;
2 6 3 curInterval Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
Signature: (Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;Lorg/graalvm/compiler/lir/StandardOp$MoveOp;)Z
MethodParameters:
Name Flags
block
move
private static void checkIntervals(org.graalvm.compiler.debug.DebugContext, org.graalvm.compiler.lir.alloc.lsra.Interval);
descriptor: (Lorg/graalvm/compiler/debug/DebugContext;Lorg/graalvm/compiler/lir/alloc/lsra/Interval;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 1
astore 3
start local 3 2: goto 14
3: StackMap locals: org.graalvm.compiler.lir.alloc.lsra.Interval org.graalvm.compiler.lir.alloc.lsra.Interval
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.$assertionsDisabled:Z
ifne 4
aload 3
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.spillDefinitionPos:()I
ifgt 4
new java.lang.AssertionError
dup
ldc "invalid spill definition pos"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
4: StackMap locals:
StackMap stack:
aload 2
ifnull 7
5: getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.$assertionsDisabled:Z
ifne 6
aload 3
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.from:()I
aload 2
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.from:()I
if_icmpge 6
new java.lang.AssertionError
dup
ldc "intervals not sorted"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
6: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.$assertionsDisabled:Z
ifne 7
aload 3
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.spillDefinitionPos:()I
aload 2
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.spillDefinitionPos:()I
if_icmpge 7
new java.lang.AssertionError
dup
ldc "when intervals are sorted by from : then they must also be sorted by spillDefinitionPos"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
7: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.$assertionsDisabled:Z
ifne 8
aload 3
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.spillSlot:()Ljdk/vm/ci/meta/AllocatableValue;
ifnonnull 8
aload 3
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.canMaterialize:()Z
ifne 8
new java.lang.AssertionError
dup
ldc "interval has no spill slot assigned"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
8: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.$assertionsDisabled:Z
ifne 9
aload 3
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.spillDefinitionPos:()I
aload 3
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.from:()I
if_icmpge 9
new java.lang.AssertionError
dup
ldc "invalid order"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
9: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase.$assertionsDisabled:Z
ifne 10
aload 3
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.spillDefinitionPos:()I
aload 3
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.from:()I
iconst_2
iadd
if_icmple 10
new java.lang.AssertionError
dup
ldc "only intervals defined once at their start-pos can be optimized"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.graalvm.compiler.debug.DebugContext.isLogEnabled:()Z
ifeq 12
11: aload 0
ldc "interval %d (from %d to %d) must be stored at %d"
aload 3
getfield org.graalvm.compiler.lir.alloc.lsra.Interval.operandNumber:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 3
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.from:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 3
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.to:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 3
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.spillDefinitionPos:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual org.graalvm.compiler.debug.DebugContext.log:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
12: StackMap locals:
StackMap stack:
aload 3
astore 2
13: aload 3
getfield org.graalvm.compiler.lir.alloc.lsra.Interval.next:Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
astore 3
14: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.graalvm.compiler.lir.alloc.lsra.Interval.isEndMarker:()Z
ifeq 3
15: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 debug Lorg/graalvm/compiler/debug/DebugContext;
0 16 1 interval Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
1 16 2 prev Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
2 16 3 temp Lorg/graalvm/compiler/lir/alloc/lsra/Interval;
MethodParameters:
Name Flags
debug
interval
}
SourceFile: "LinearScanEliminateSpillMovePhase.java"
NestMembers:
org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase$1 org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase$Options
InnerClasses:
public abstract LoadConstantOp = org.graalvm.compiler.lir.StandardOp$LoadConstantOp of org.graalvm.compiler.lir.StandardOp
public abstract MoveOp = org.graalvm.compiler.lir.StandardOp$MoveOp of org.graalvm.compiler.lir.StandardOp
public abstract ValueMoveOp = org.graalvm.compiler.lir.StandardOp$ValueMoveOp of org.graalvm.compiler.lir.StandardOp
public final SpillState = org.graalvm.compiler.lir.alloc.lsra.Interval$SpillState of org.graalvm.compiler.lir.alloc.lsra.Interval
abstract IntervalPredicate = org.graalvm.compiler.lir.alloc.lsra.LinearScan$IntervalPredicate of org.graalvm.compiler.lir.alloc.lsra.LinearScan
org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase$1
public Options = org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase$Options of org.graalvm.compiler.lir.alloc.lsra.LinearScanEliminateSpillMovePhase
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