Skip to content

[PowerPC] Fix vector_shuffle combines when inputs are scalar_to_vector of differing types. #80784

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

Merged
merged 6 commits into from
Nov 11, 2024

Conversation

amy-kwan
Copy link
Contributor

@amy-kwan amy-kwan commented Feb 6, 2024

This patch fixes the combines for vector_shuffles when either or both of its left
and right hand side inputs are scalar_to_vector nodes.

Previously, when both left and right side inputs are scalar_to_vector nodes, the
current combine could not handle this situation, as the shuffle mask was updated
incorrectly. To temporarily solve this solution, this combine was simply disabled
and not performed.

Now, not only does this patch aim to resolve the previous issue of the incorrect
shuffle mask adjustments respectively, but it also updates any test cases that are
affected by this change.

Patch migrated from https://reviews.llvm.org/D130487.

@amy-kwan
Copy link
Contributor Author

Ping.

2 similar comments
@amy-kwan
Copy link
Contributor Author

amy-kwan commented Mar 2, 2024

Ping.

@amy-kwan
Copy link
Contributor Author

Ping.

@amy-kwan
Copy link
Contributor Author

amy-kwan commented Apr 1, 2024

Ping on this review once again :)

@amy-kwan amy-kwan requested a review from redstar April 5, 2024 15:51
@amy-kwan amy-kwan force-pushed the amy-kwan/vector-shuff-stov branch from 6df51c4 to efd6964 Compare April 18, 2024 15:41
@amy-kwan amy-kwan requested a review from diggerlin April 18, 2024 16:09
@amy-kwan amy-kwan requested a review from maryammo April 25, 2024 00:06
@amy-kwan
Copy link
Contributor Author

Ping. :-)

@amy-kwan amy-kwan force-pushed the amy-kwan/vector-shuff-stov branch from efd6964 to 0e0d5cf Compare August 17, 2024 01:48
@amy-kwan amy-kwan requested a review from diggerlin August 19, 2024 17:32
@amy-kwan amy-kwan force-pushed the amy-kwan/vector-shuff-stov branch from 0e0d5cf to 0f01dfb Compare October 1, 2024 22:38
@amy-kwan
Copy link
Contributor Author

amy-kwan commented Oct 1, 2024

Ping.

…r of differing types.

This patch fixes the combines for vector_shuffles when either or both of its
left and right hand side inputs are scalar_to_vector nodes.

Previously, when both left and right side inputs are scalar_to_vector nodes,
the current combine could not handle this situation, as the shuffle mask was
updated incorrectly. To temporarily solve this solution, this combine was
simply disabled and not performed.

Now, not only does this patch aim to resolve the previous issue of the incorrect
shuffle mask adjustments respectively, but it also updates any test cases
that are affected by this change.

Patch migrated from https://reviews.llvm.org/D130487.
@amy-kwan amy-kwan force-pushed the amy-kwan/vector-shuff-stov branch from 0f01dfb to fc931e4 Compare November 4, 2024 23:15
@amy-kwan amy-kwan requested review from redstar and diggerlin November 4, 2024 23:16
Copy link

github-actions bot commented Nov 4, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

@diggerlin
Copy link
Contributor

thanks for addressing all the comments

@amy-kwan amy-kwan merged commit 4981f8c into llvm:main Nov 11, 2024
6 of 8 checks passed
Groverkss pushed a commit to iree-org/llvm-project that referenced this pull request Nov 15, 2024
…r of differing types. (llvm#80784)

This patch fixes the combines for vector_shuffles when either or both of
its left and right hand side inputs are scalar_to_vector nodes.

Previously, when both left and right side inputs are scalar_to_vector
nodes, the current combine could not handle this situation, as the shuffle
mask was updated incorrectly. To temporarily solve this solution, this combine
was simply disabled and not performed.

Now, not only does this patch aim to resolve the previous issue of the
incorrect shuffle mask adjustments respectively, but it also updates any test
cases that are affected by this change.

Patch migrated from https://reviews.llvm.org/D130487.
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.

4 participants