2 writes to FoldedInstructions
illink (2)
Linker.Steps\UnreachableBlocksOptimizer.cs (2)
617
FoldedInstructions
= null;
639
FoldedInstructions
= new Collection<Instruction>(Instructions);
31 references to FoldedInstructions
illink (31)
Linker.Steps\UnreachableBlocksOptimizer.cs (31)
635
[MemberNotNull(nameof(
FoldedInstructions
))]
645
if (
FoldedInstructions
== null)
654
FoldedInstructions
[index] = newInstruction;
721
if (
FoldedInstructions
== null)
727
stackDepth -= GetStackBehaviourDelta(
FoldedInstructions
[start_index], out bool undefined);
841
if (
FoldedInstructions
== null)
896
Instruction[]? args = GetArgumentsOnStack(md,
FoldedInstructions
?? instructions, i);
988
Debug.Assert(
FoldedInstructions
!= null);
999
for (int i = 0; i <
FoldedInstructions
.Count; ++i)
1001
var instr =
FoldedInstructions
[i];
1037
if (i > 0 && GetConstantValue(
FoldedInstructions
[i - 1], out var operand))
1064
if (i >= 3 && GetConstantValue(
FoldedInstructions
[i - 3], out operand) && operand is int opint2 && IsPairedStlocLdloc(
FoldedInstructions
[i - 2],
FoldedInstructions
[i - 1]))
1079
if (i >= 5 && opcode == OpCodes.Switch && GetConstantValue(
FoldedInstructions
[i - 5], out operand) && operand is int opint3 && IsPairedStlocLdloc(
FoldedInstructions
[i - 4],
FoldedInstructions
[i - 3]))
1084
if (!GetConstantValue(
FoldedInstructions
[i - 2], out operand) || operand is not int offset)
1087
if (
FoldedInstructions
[i - 1].OpCode != OpCodes.Sub)
1158
Debug.Assert(
FoldedInstructions
!= null);
1160
var reachable = new BitArray(
FoldedInstructions
.Count);
1168
while (i <
FoldedInstructions
.Count)
1174
var instr =
FoldedInstructions
[i++];
1246
if (filterEnd >= 0 &&
FoldedInstructions
[filterEnd].OpCode == OpCodes.Endfilter)
1287
Debug.Assert(
FoldedInstructions
!= null && mapping != null);
1291
idx =
FoldedInstructions
.IndexOf(instruction);
1307
Debug.Assert(
FoldedInstructions
!= null);
1314
return GetConstantValue(
FoldedInstructions
[index - 2], out left) &&
1315
GetConstantValue(
FoldedInstructions
[index - 1], out right);
1343
Debug.Assert(
FoldedInstructions
!= null);
1344
return HasJumpIntoTargetRange(
FoldedInstructions
, firstInstr, lastInstr, TryGetInstructionIndex);