Stress test for nested module hierarchies
authorBartosz Nitka <niteria@gmail.com>
Mon, 15 May 2017 11:14:01 +0000 (04:14 -0700)
committerBartosz Nitka <niteria@gmail.com>
Mon, 15 May 2017 11:14:53 +0000 (04:14 -0700)
commite527fc2e90958280a36645b6bd0223861cc50a55
treeb7b17398228732c53f6833d11448b91302f87d51
parentd5414dd61b540be3b3945c321065a1c70c7962ac
Stress test for nested module hierarchies

I'm optimizing a case that is well approximated by
multiple layers of modules where every module in a layer
imports all the modules in the layer below.

It turns out I regressed performance on such cases in 7fea7121.
I'm adding a test case to track improvements and prevent
future regressions.

Test Plan: ./validate

Reviewers: simonmar, austin, bgamari

Reviewed By: simonmar

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3575
compiler/deSugar/DsUsage.hs
compiler/iface/MkIface.hs
compiler/typecheck/TcRnDriver.hs
compiler/typecheck/TcRnTypes.hs
testsuite/tests/perf/compiler/all.T
testsuite/tests/perf/compiler/genMultiLayerModules [new file with mode: 0755]