Make the loop-breaking algorithm a bit more liberal, where RULES are involved
authorsimonpj@microsoft.com <unknown>
Mon, 21 Jan 2008 13:56:54 +0000 (13:56 +0000)
committersimonpj@microsoft.com <unknown>
Mon, 21 Jan 2008 13:56:54 +0000 (13:56 +0000)
commit478b939d1bd08c37ba3e334296eeb448c78491d2
treeec845713484500f622da4584772c94c1ec7bc34b
parentf549e2783d07bd1661cdec853c06d03750dd5f89
Make the loop-breaking algorithm a bit more liberal, where RULES are involved

This is another gloss on the now-quite-subtle and heavily-documented algorithm
for choosing loop breakers.

This fix, provoked by Roman's NDP library, makes sure that when we are choosing
a loop breaker we only take into account variables free on the *rhs* of a rule
not the *lhs*.

Most of the new lines are comments!
compiler/simplCore/OccurAnal.lhs