Avoid redundant simplification
authorsimonpj@microsoft.com <unknown>
Thu, 7 Oct 2010 09:59:35 +0000 (09:59 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 7 Oct 2010 09:59:35 +0000 (09:59 +0000)
commitfb982282ff6307b342d8fbc09b58a990d76c68fb
tree1dbdc7bca67e63c01166c6af9527749d77a8559e
parentd385c64c1684fa7d66027b6e9c6d8e581b46e923
Avoid redundant simplification

When adding specialisation for imported Ids, I noticed that the
Glorious Simplifier was repeatedly (and fruitlessly) simplifying the
same term.  It turned out to be easy to fix this, because I already
had a flag in the ApplyTo and Select constructors of SimplUtils.SimplCont.

See Note [Avoid redundant simplification]
compiler/simplCore/SimplUtils.lhs
compiler/simplCore/Simplify.lhs