cmm/: Avoid using lazy left folds
authorMichal Terepeta <michal.terepeta@gmail.com>
Mon, 5 Mar 2018 20:16:02 +0000 (15:16 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 6 Mar 2018 18:03:06 +0000 (13:03 -0500)
commit64c0af7517148316b259300b851b966cfbcf3eaf
tree3c72f8eb06f7f7c5d86806d81dbe9177a995ba49
parent9bccfcdbbf97250ede05a9351de48f8fa1788217
cmm/: Avoid using lazy left folds

This basically replaces all uses of `foldl` with `foldl'`. I've looked
at all the call sites and there doesn't seem to be any reason to prefer
the lazy version.

Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>
Test Plan: ./validate

Reviewers: bgamari, simonmar

Reviewed By: bgamari

Subscribers: rwbarton, thomie, carter

Differential Revision: https://phabricator.haskell.org/D4463
compiler/cmm/CmmBuildInfoTables.hs
compiler/cmm/CmmCommonBlockElim.hs
compiler/cmm/CmmContFlowOpt.hs
compiler/cmm/CmmLayoutStack.hs
compiler/cmm/CmmProcPoint.hs
compiler/cmm/CmmSink.hs