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

(0.49) Implement boxing/unboxing during VectorAPIExpansion under an option #20769

Merged

Conversation

gita-omr
Copy link
Contributor

@gita-omr gita-omr commented Dec 6, 2024

  • introduce new category of temps: vec_len_boxed_unknown
  • build temp and whole webs as before
  • wherever a temp was invalidated before assign vec_len_boxed_unknown instead
  • store vectorization info for calls per node vs. per symbol reference for temps
  • always vectorize nodes that are calls to vector API methods, even if input vectors
    need to be unboxed or result needs to be boxed
  • since boxing/unboxing is not supported for all types, have an extra pass just before
    transformation and invalidate whole web if it contains unsupported boxing/unboxing
  • transformation happens as before, except that we first check if children of non-vectorized
    node need to be boxed or children of vectorized node need to be unboxed, insert
    boxing/unboxing correspondingly
  • this prototype is only enabled under -Xjit:enableVectorAPIBoxing option and the default
    behaviour shoulld be preserved

Backport of #20685

- introduce new category of temps: vec_len_boxed_unknown
- build temp and whole webs as before
- wherever a temp was invalidated before assign vec_len_boxed_unknown instead
- store vectorization info for calls per node vs. per symbol reference for temps
- always vectorize nodes that are calls to vector API methods, even if input vectors
  need to be unboxed or result needs to be boxed
- since boxing/unboxing is not supported for all types, have an extra pass just before
  transformation and invalidate whole web if it contains unsupported boxing/unboxing
- transformation happens as before, except that we first check if children of non-vectorized
  node need to be boxed or children of vectorized node need to be unboxed, insert
  boxing/unboxing correspondingly
- this prototype is only enabled under -Xjit:enableVectorAPIBoxing option and the default
  behaviour shoulld be preserved
@gita-omr
Copy link
Contributor Author

gita-omr commented Dec 6, 2024

Original PR: #20685

@AdamBrousseau AdamBrousseau merged commit 627324f into eclipse-openj9:v0.49.0-release Dec 6, 2024
2 checks passed
@pshipton pshipton changed the title Implement boxing/unboxing during VectorAPIExpansion under an option (0.49) Implement boxing/unboxing during VectorAPIExpansion under an option Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants