[Git][ghc/ghc][wip/fendor/perf-regression-if-simplified-core] Add perf regression test for `-fwrite-if-simplified-core`

Hannes Siebenhandl (@fendor) gitlab at gitlab.haskell.org
Fri Apr 26 12:09:10 UTC 2024



Hannes Siebenhandl pushed to branch wip/fendor/perf-regression-if-simplified-core at Glasgow Haskell Compiler / GHC


Commits:
11352d74 by Fendor at 2024-04-26T14:08:56+02:00
Add perf regression test for `-fwrite-if-simplified-core`

- - - - -


2 changed files:

- testsuite/tests/perf/compiler/Makefile
- testsuite/tests/perf/compiler/all.T


Changes:

=====================================
testsuite/tests/perf/compiler/Makefile
=====================================
@@ -23,6 +23,9 @@ MultiModulesRecompDefsWithCore:
 	./genMultiLayerModulesCore
 	'$(TEST_HC)' --interactive $(TEST_HC_OPTS) -e "" -fwrite-if-simplified-core MultiLayerModules
 
+MultiModulesDefsWithCore:
+	./genMultiLayerModulesCore
+
 MultiComponentModulesRecomp:
 	'$(PYTHON)' genMultiComp.py
 	TEST_HC='$(TEST_HC)' TEST_HC_OPTS='$(TEST_HC_OPTS)' ./run


=====================================
testsuite/tests/perf/compiler/all.T
=====================================
@@ -419,6 +419,19 @@ test('MultiLayerModulesDefsGhciWithCore',
      ghci_script,
      ['MultiLayerModulesDefsGhciWithCore.script'])
 
+test('MultiLayerModulesDefsGhcWithCore',
+     [ collect_compiler_residency(15),
+       pre_cmd('$MAKE -s --no-print-directory MultiModulesDefsWithCore'),
+       extra_files(['genMultiLayerModulesCore']),
+       compile_timeout_multiplier(5)
+       # this is _a lot_
+       # but this test has been failing every now and then,
+       # especially on i386. Let's just give it some room
+       # to complete successfully reliably everywhere.
+     ],
+     multimod_compile,
+     ['MultiLayerModules', '-v0 -fwrite-if-simplified-core'])
+
 test('MultiLayerModulesDefsGhciReload',
      [ collect_compiler_residency(15),
        pre_cmd('./genMultiLayerModulesDefs'),



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/11352d7412b1bab672739a6cb1f1707200aca0e2

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/11352d7412b1bab672739a6cb1f1707200aca0e2
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240426/72f166dd/attachment-0001.html>


More information about the ghc-commits mailing list