Make the occurrence analyser track preInlineUnconditionally
authorsimonpj@microsoft.com <unknown>
Wed, 22 Dec 2010 13:11:56 +0000 (13:11 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 22 Dec 2010 13:11:56 +0000 (13:11 +0000)
commit16dd51fb989fa0fe10f04da19f9724ff31838470
treec3ac7b835e8fd1c9ddbc45e72abca9ab99bc058d
parent3e0a7b9fbc16e432efa562df027d189fa274943a
Make the occurrence analyser track preInlineUnconditionally

This fixes a somewhat obscure situation in which an
over-optimistic use of "occurs once" led to an infinite
sequence of simplifier iterations.  Se Note [Cascading inlines]
for the details.

This showed up when compiling rather large DPH programs, which
run lots of iterations of the simplifier, which in turn made
compilation take much longer than necessary.
compiler/simplCore/OccurAnal.lhs