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

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Tue May 14 02:21:43 UTC 2024



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
d65bf4a2 by Fendor at 2024-05-13T22:20:30-04: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/d65bf4a28688028600ef706c0b62275f1fdca628

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d65bf4a28688028600ef706c0b62275f1fdca628
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/20240513/d4dc6383/attachment-0001.html>


More information about the ghc-commits mailing list