Skip to content

Make variables cost-free#1585

Merged
pavpanchekha merged 2 commits intomainfrom
free-free-variables
Apr 21, 2026
Merged

Make variables cost-free#1585
pavpanchekha merged 2 commits intomainfrom
free-free-variables

Conversation

@pavpanchekha
Copy link
Copy Markdown
Contributor

@pavpanchekha pavpanchekha commented Apr 19, 2026

Make symbol/variable nodes cost 0 in the shared platform cost model. This way inlining a la #1484 is cost-neutral, and also I guess it's just one less thing to think about.

@pavpanchekha
Copy link
Copy Markdown
Contributor Author

It seems to work well, except that now some optimized versions have cost literally 0, which seems to break plotting.

@pavpanchekha pavpanchekha changed the title Fix variable usage cost in platform extractors Make variables cost-free Apr 19, 2026
@pavpanchekha pavpanchekha marked this pull request as ready for review April 20, 2026 18:54
@pavpanchekha pavpanchekha merged commit 6097578 into main Apr 21, 2026
6 checks passed
@pavpanchekha pavpanchekha deleted the free-free-variables branch April 21, 2026 20:45
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.

1 participant