Skip to content
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

Consider removing Instruction::Truncate in favour of modulo binary instructions #4347

Open
TomAFrench opened this issue Feb 12, 2024 · 0 comments

Comments

@TomAFrench
Copy link
Member

As noted in #4329, Instruction::Truncate is just a special case of the modulo operator. @jfecher raised the potential for just removing the truncation instruction and working in terms of the modulo operator generally.

We should look into whether that would result in simplifications to the compiler logic or whether handling the special cases of power of 2 moduli would be extra verbose with this method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant