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

cmd/compile: ARM's MOVWnop causes regalloc to insert unnecessary copies #37096

josharian opened this issue Feb 6, 2020 · 1 comment


Copy link

@josharian josharian commented Feb 6, 2020

MOVWnop is a nop/copy designed to ensure type safety. It generates no code. However, it is not free; regalloc sometimes makes a copy of a value to provide to MOVWnop, since it doesn't know that MOVWnop doesn't modify its argument.

I noticed this while tracking down regressions due to changes in rewrite rule order application.

I don't know what the best approach to fixing it is. Suggestions?

cc @cherrymui

Copy link

@cagedmantis cagedmantis commented Feb 7, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants