Moved dependence analysis into DAG constructor.