add simple loop detection to optimizer
add simple loop detection to optimizer

darcs-hash:20051018032444-1a7c6-c6a940924298b3490952ce74aefc592e34794a5d

jimcrayne/jhc,jimcrayne/jhc,jimcrayne/jhc,jimcrayne/jhc