/// <summary> /// Checks if <paramref name="current"/> gets overridden by <paramref name="next"/>. /// </summary> /// <param name="current">The OpCode of the current instruction.</param> /// <param name="next">The OpCode of the next instruction.</param> /// <returns> /// True if <paramref name="current"/> gets overridden by <paramref name="next"/>, false otherwise. /// </returns> private static bool IsDeadStore(OpCode current, OpCode next) => next.AssignsValue() && (current.ModifiesValue() || current.AssignsValue());