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

Exploit slp-vectorization #455

Open
priyasiddharth opened this issue Sep 27, 2022 · 0 comments
Open

Exploit slp-vectorization #455

priyasiddharth opened this issue Sep 27, 2022 · 0 comments

Comments

@priyasiddharth
Copy link
Collaborator

We currently turn slp-vectorize off during seaopt

slp-vectorization turns the following pattern (from here)

while(1) {
  if(...) break;
  state->slots[index] = state->slots[next_index];
}

to

while(1) {
  if(...) break;
  state->slots[index] = state->slots[next_index];  // now pack into 2 element vector at index 0
  state->slots[index + 1] = state->slots[next_index + 1]; // pack at index 1
  // probably change counter stride width
}

so two scalar load/stores, become one vector/load store
Can we exploit slp-vectorization like this in some way?

Turned off in #454

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

No branches or pull requests

1 participant