Skip to content

Hand back the term when an optimization pass changes nothing - #8620

Merged
cristianoc merged 10 commits into
lambda/as-in-the-astfrom
lambda/passes-share-terms
Sep 5, 2026
Merged

Hand back the term when an optimization pass changes nothing#8620
cristianoc merged 10 commits into
lambda/as-in-the-astfrom
lambda/passes-share-terms

Say how to create a stacked PR

640a01b
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Sep 5, 2026 in 0s

77.38% (-0.03%) compared to 99f0ecf

View this Pull Request on Codecov

77.38% (-0.03%) compared to 99f0ecf

Details

Codecov Report

❌ Patch coverage is 96.03960% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.38%. Comparing base (99f0ecf) to head (640a01b).

Files with missing lines Patch % Lines
compiler/core/lam_pass_deep_flatten.ml 82.14% 5 Missing ⚠️
compiler/core/lam_pass_remove_alias.ml 92.30% 2 Missing ⚠️
compiler/core/lam_pass_exits.ml 91.66% 1 Missing ⚠️
Additional details and impacted files
@@                   Coverage Diff                    @@
##           lambda/as-in-the-ast    #8620      +/-   ##
========================================================
- Coverage                 77.40%   77.38%   -0.03%     
========================================================
  Files                       471      474       +3     
  Lines                     63585    63524      -61     
========================================================
- Hits                      49218    49156      -62     
- Misses                    14367    14368       +1     
Files with missing lines Coverage Δ
compiler/core/lam_compile_main.ml 89.36% <100.00%> (+0.09%) ⬆️
compiler/core/lam_exit_count.ml 100.00% <100.00%> (ø)
compiler/core/lam_pass_collapse_var_aliases.ml 100.00% <100.00%> (+2.27%) ⬆️
compiler/core/lam_pass_count.ml 93.97% <100.00%> (ø)
compiler/core/lam_pass_lets_dce.ml 85.07% <100.00%> (-3.93%) ⬇️
compiler/core/lam_util.ml 90.62% <100.00%> (+0.62%) ⬆️
tests/ounit_tests/ounit_deep_flatten_tests.ml 100.00% <100.00%> (ø)
tests/ounit_tests/ounit_exits_tests.ml 100.00% <100.00%> (ø)
tests/ounit_tests/ounit_lambda_traverse_tests.ml 100.00% <100.00%> (ø)
tests/ounit_tests/ounit_tests_main.ml 100.00% <ø> (ø)
... and 3 more

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.