Fix a cycle in the DAG. In this code we replace multiple loads with a single load and