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

Vectorizer refactor heuristic for select_and_join #3449

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gretay-js
Copy link
Contributor

  • Refactor Block.find_last_instruction: doesn't need to traverse the entire block any more because we cache the original positions in a table, use it for find_last_instruction.
  • Cache last_pos of a Computation: the latest scalar instruction in the block that belongs to the vectorized computation.
  • Use last_pos to improve the heuristic for Computation.select_and_join. It didn't make much difference to the number of vectorized instructions on the compiler testsuite, but it is consistently slightly faster.

@gretay-js gretay-js requested a review from xclerc January 9, 2025 12:03
@gretay-js gretay-js changed the title Vectorizer refactor minor heuristic Vectorizer refactor heuristic for select_and_join Jan 9, 2025
@gretay-js gretay-js mentioned this pull request Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant