Skip to content

Conversation

@acl-cqc
Copy link
Contributor

@acl-cqc acl-cqc commented Dec 24, 2025

So following #1325 I was finally able to (/finally succeeded) in evaluating the effect of Quantinuum/hugr#2749 on guppy tests. (There was some question on that PR as to whether we needed to add new facility, see #2766; here is the data.)

Three tests were affected (indeed the same ones as were broken and then fixed by Quantinuum/hugr#2779 but that is a separate issue). The sizes of the LLVM output as follows:

Original (hugr 0.24.3) Hugr 0.25+fix Hugr 0.25+fix + this PR
new test 9568 11856 9888
basic_type 10224 11616 10400
notebook2 15680 17184 15936
notebook5 (Hugr 1) 10832 12304 11072
notebook5 (Hugr 2) 10480 11840 10656

Inspection of the hugrs in the middle row revealed the helper functions from Quantinuum/hugr#2749 were indeed present in the LLVM output as define (not define private). Hence, this PR, following which LLVM is able to remove the defines. (I have not looked into the remaining +2-3% increase. (The numbers include many other changes between hugr-0.24.3 and hugr-0.25.0.)

@codecov
Copy link

codecov bot commented Dec 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.76%. Comparing base (0c437bf) to head (9a6c975).

Additional details and impacted files
@@                  Coverage Diff                  @@
##           ab/bump-hugr-0.25    #1333      +/-   ##
=====================================================
- Coverage              79.77%   79.76%   -0.02%     
=====================================================
  Files                    160      160              
  Lines                  20600    20615      +15     
  Branches               19634    19649      +15     
=====================================================
+ Hits                   16434    16443       +9     
- Misses                  3187     3191       +4     
- Partials                 979      981       +2     
Flag Coverage Δ
python 92.92% <ø> (ø)
qis-compiler 100.00% <ø> (ø)
rust 79.09% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@acl-cqc acl-cqc requested a review from aborgna-q December 24, 2025 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants