A little refactoring of the simplifier around join points
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 21 Feb 2017 14:30:56 +0000 (14:30 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 21 Feb 2017 15:54:29 +0000 (15:54 +0000)
commit0d43f74fb6bfc38ee16f318db56716cb08d07939
treefc6d3f945d462bb322db51b74ce3d1bc535bf1e5
parent611f998fd545b45167170d9e60b7d9147178f0a1
A little refactoring of the simplifier around join points

* Rename SimplEnv.setInScope to setInScopeAndZapFloats,
  because I keep forgetting that's what it does

* Remove unnecessary (and hence confusing) zapJoinFloats from
  simplLazyBind

* Reorder args of simplJoinRhs to put the cont last
compiler/simplCore/SimplEnv.hs
compiler/simplCore/Simplify.hs