Linker.Steps\UnreachableBlocksOptimizer.cs (11)
362if (!GetConstantValue(arguments[0], out left) ||
363!GetConstantValue(arguments[1], out right))
1082if (i > 0 && GetConstantValue(FoldedInstructions[i - 1], out var operand))
1109if (i >= 3 && GetConstantValue(FoldedInstructions[i - 3], out operand) && operand is int opint2 && IsPairedStlocLdloc(FoldedInstructions[i - 2], FoldedInstructions[i - 1]))
1124if (i >= 5 && opcode == OpCodes.Switch && GetConstantValue(FoldedInstructions[i - 5], out operand) && operand is int opint3 && IsPairedStlocLdloc(FoldedInstructions[i - 4], FoldedInstructions[i - 3]))
1129if (!GetConstantValue(FoldedInstructions[i - 2], out operand) || operand is not int offset)
1386return GetConstantValue(FoldedInstructions[index - 2], out left) &&
1387GetConstantValue(FoldedInstructions[index - 1], out right);
2210return GetConstantValue(instr, out value);
2234if (!GetConstantValue(instr, out left))
2252return GetConstantValue(instr, out right);