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

Cranelift: Simplify all our various CLIF load and store instructions #6056

Open
fitzgen opened this issue Mar 17, 2023 · 0 comments
Open

Cranelift: Simplify all our various CLIF load and store instructions #6056

fitzgen opened this issue Mar 17, 2023 · 0 comments
Labels
cranelift:area:clif cranelift Issues related to the Cranelift code generator

Comments

@fitzgen
Copy link
Member

fitzgen commented Mar 17, 2023

  • {u,s}load{8,16,32} these are all equivalent to load.i{8,16,32} followed by {u,s}extend. We should just use that larger sequence and backends that have special lowerings for uload8() that are better than uextend(load8()) should add rules to match the compound pattern.

  • Ditto for {u,s}store{8,16,32}.

  • Same for our SIMD loads like uload16x4 et al. These can be load.i16x4 followed by a lane-wise uextend, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift:area:clif cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

No branches or pull requests

1 participant