Linker.Steps\UnreachableBlocksOptimizer.cs (11)
344if (!GetConstantValue(arguments[0], out left) ||
345!GetConstantValue(arguments[1], out right))
1037if (i > 0 && GetConstantValue(FoldedInstructions[i - 1], out var operand))
1064if (i >= 3 && GetConstantValue(FoldedInstructions[i - 3], out operand) && operand is int opint2 && IsPairedStlocLdloc(FoldedInstructions[i - 2], FoldedInstructions[i - 1]))
1079if (i >= 5 && opcode == OpCodes.Switch && GetConstantValue(FoldedInstructions[i - 5], out operand) && operand is int opint3 && IsPairedStlocLdloc(FoldedInstructions[i - 4], FoldedInstructions[i - 3]))
1084if (!GetConstantValue(FoldedInstructions[i - 2], out operand) || operand is not int offset)
1314return GetConstantValue(FoldedInstructions[index - 2], out left) &&
1315GetConstantValue(FoldedInstructions[index - 1], out right);
2138return GetConstantValue(instr, out value);
2162if (!GetConstantValue(instr, out left))
2180return GetConstantValue(instr, out right);