Using a lookahead window in a compaction-based parallelizing compiler