Linker.Steps\UnreachableBlocksOptimizer.cs (11)
344if (!GetConstantValue(arguments[0], out left) ||
345!GetConstantValue(arguments[1], out right))
1064if (i > 0 && GetConstantValue(FoldedInstructions[i - 1], out var operand))
1091if (i >= 3 && GetConstantValue(FoldedInstructions[i - 3], out operand) && operand is int opint2 && IsPairedStlocLdloc(FoldedInstructions[i - 2], FoldedInstructions[i - 1]))
1106if (i >= 5 && opcode == OpCodes.Switch && GetConstantValue(FoldedInstructions[i - 5], out operand) && operand is int opint3 && IsPairedStlocLdloc(FoldedInstructions[i - 4], FoldedInstructions[i - 3]))
1111if (!GetConstantValue(FoldedInstructions[i - 2], out operand) || operand is not int offset)
1341return GetConstantValue(FoldedInstructions[index - 2], out left) &&
1342GetConstantValue(FoldedInstructions[index - 1], out right);
2165return GetConstantValue(instr, out value);
2189if (!GetConstantValue(instr, out left))
2207return GetConstantValue(instr, out right);