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

[X86] Do not directly fold for VINSERTPS #65718

Merged
merged 2 commits into from
Sep 8, 2023
Merged

Conversation

phoebewang
Copy link
Contributor

We have already customized folding for VINSERTPS by 7e6606f, which do the folding when alignment >= 4 bytes.

We cannot arbitrarily fold it like others because we need to calculate the source offset.

We have already customized folding for VINSERTPS by 7e6606f, which do
the folding when alignment >= 4 bytes.

We cannot arbitrarily fold it like others because we need to calculate
the source offset.
@@ -43,6 +43,8 @@ NOFOLD(VEXTRACTI32x8Zrrk)
NOFOLD(VEXTRACTI64x2Z256rrk)
NOFOLD(VEXTRACTI64x2Zrrk)
NOFOLD(VEXTRACTI64x4Zrrk)
NOFOLD(VINSERTPSZrr)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this to line 239 NOFOLD(INSERTPSrr)? So we share the comments

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I didn't notice it before

Copy link
Contributor

@KanRobert KanRobert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a comment. Thanks for the fix!

@phoebewang phoebewang merged commit 2e44b07 into llvm:main Sep 8, 2023
2 checks passed
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.

None yet

2 participants