Skip to content

Conversation

@FabioLuporini
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Feb 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.94%. Comparing base (e40fe22) to head (6606bc8).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2839      +/-   ##
==========================================
- Coverage   78.94%   78.94%   -0.01%     
==========================================
  Files         248      248              
  Lines       50877    50877              
  Branches     4394     4394              
==========================================
- Hits        40167    40163       -4     
- Misses       9912     9915       +3     
- Partials      798      799       +1     

☔ 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.

Copy link
Contributor

@EdCaunt EdCaunt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving as this pretty much just moves stuff around, even if there are changes that I would personally consider

# Project the candidate aliases into `exprs` to derive the final
# working set
mapper = {k: v for k, v in mapper.items()
if v.free_symbols & set(aliases.aliaseds)}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set(aliases.aliaseds) is known before creating this mapper and will be the same for every iteration of the list comprehension. I would maybe pull it out of the list comprehension?

# `score > M` => optimized
# `m <= score <= M` => maybe optimized, depends on heuristics
m = self.opt_mingain
M = self.opt_mingain*3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 3? Is it just a magic number?

owset = wset(templated)

# Filter off the aliases with a weak flop-reduction / working-set tradeoff
key = lambda a: \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this wants to be an actual function rather than a lambda - it's pretty unreadable

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, just saw that all this is just lifted from elsewhere. I think the point still stands even if it's not so pressing

@FabioLuporini
Copy link
Contributor Author

all your points do make sense

as explained offline, we should revamp this module at some point in the future

@FabioLuporini FabioLuporini merged commit 1c65e48 into main Feb 2, 2026
42 checks passed
@FabioLuporini FabioLuporini deleted the revisit-cire-again branch February 2, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants