Skip to content

Constant propagation in word_simp #1168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tanyongkiam opened this issue May 5, 2025 · 1 comment
Open

Constant propagation in word_simp #1168

tanyongkiam opened this issue May 5, 2025 · 1 comment
Labels
good first issue low effort May still assume familiarity

Comments

@tanyongkiam
Copy link
Contributor

At the moment, constant foldng/propagation in wordLang is limited to expressions:

https://github.com/CakeML/cakeml/blob/master/compiler/backend/word_simpScript.sml#L156

This issue is about extending it to work for instructions as well:

https://github.com/CakeML/cakeml/blob/master/compiler/backend/word_simpScript.sml#L220

(and probably other simple places that could benefit).

This was reported by @talsewell in the context of Pancake programs.

@tanyongkiam tanyongkiam added good first issue low effort May still assume familiarity labels May 5, 2025
@talsewell
Copy link
Contributor

For the purposes of pancake programs, this might be fixed by #1169 , assuming that PR succeeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue low effort May still assume familiarity
Projects
None yet
Development

No branches or pull requests

2 participants