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

anticipate back-end when inlining fxdiv-and-mod #894

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

owaddell
Copy link
Contributor

At optimize-level 3, cp0 can replace calls to fxdiv-and-mod, where the second argument is constant, with calls to fxdiv and fxmod that the back-end does not inline (when the constant is not a power of two). This aims to address issue #892 by helping cp0 anticipate how the back-end will handle the transformed code.

@owaddell owaddell merged commit bf70250 into cisco:main Dec 17, 2024
16 checks passed
@owaddell owaddell deleted the owaddell/cp0-fix branch December 17, 2024 03:00
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.

3 participants