Fix exprIsDupable
authorsimonpj@microsoft.com <unknown>
Mon, 14 Feb 2011 11:15:12 +0000 (11:15 +0000)
committersimonpj@microsoft.com <unknown>
Mon, 14 Feb 2011 11:15:12 +0000 (11:15 +0000)
commit344562443cc0165c171c1bb28fb810f0513cd824
tree1439495fbaf1ab3e36206d3c6b02df0d5ac62594
parent7a50e6d8f9464090ade6d624448fac770172cf95
Fix exprIsDupable

It turns out that exprIsDupable would return True for an expression of
*arbitrary* size, provide it was a nested bunch of applications in
which no function had more than three arguments.  That was never the
intention, and could give rise to massive code duplication.

This patch makes it much less aggressive.
compiler/coreSyn/CoreUtils.lhs