Skip to content

[mono] Fix missing simd mul/div case#81201

Merged
lewing merged 3 commits into
dotnet:mainfrom
lewing:test-theory
Jan 26, 2023
Merged

[mono] Fix missing simd mul/div case#81201
lewing merged 3 commits into
dotnet:mainfrom
lewing:test-theory

Conversation

@lewing

@lewing lewing commented Jan 26, 2023

Copy link
Copy Markdown
Member

Without this only the scalar cases emit anything for Vector128 which is key to emit_vector64_vector128_t working properly. This code was removed in the Vector512 changes probably because it needs additional checks on the types.

@lewing lewing added NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) NO-REVIEW Experimental/testing PR, do NOT review it area-Codegen-AOT-mono labels Jan 26, 2023
@ghost ghost assigned lewing Jan 26, 2023
@lewing
lewing requested a review from fanyang-mono January 26, 2023 03:34
@lewing
lewing requested a review from radekdoulik January 26, 2023 03:38
@lewing

lewing commented Jan 26, 2023

Copy link
Copy Markdown
Member Author

https://gist.github.com/radekdoulik/7d27da1693192e16b621f7cd746f2dec has some diffs of good vs bad generated code

@radekdoulik radekdoulik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, it might have been disabled by mistake? I am asking in #76642 (review) to find out if there was a reason to disable it.

@fanyang-mono fanyang-mono left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for fixing this. They were accidentally removed somehow. Seems to be a merge mistake.

@lewing lewing removed NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) NO-REVIEW Experimental/testing PR, do NOT review it labels Jan 26, 2023
@lewing
lewing marked this pull request as ready for review January 26, 2023 15:34
@lewing lewing changed the title [mono] Test missing simd mul/div case [mono] Fix missing simd mul/div case Jan 26, 2023
@lambdageek

lambdageek commented Jan 26, 2023

Copy link
Copy Markdown
Member

It looks like it was a bad merge into #76642. The correct code is in 8158cb8 (from #78784) but then when the PR was merged an incomplete version from #76642was picked instead during the merge (67abfd0)

@lambdageek

Copy link
Copy Markdown
Member

I verified this PR restores most of the performance in the threaded raytracer compared to net7

@lewing
lewing merged commit 1429bdf into dotnet:main Jan 26, 2023
@lewing
lewing deleted the test-theory branch January 26, 2023 15:43
@ghost ghost locked as resolved and limited conversation to collaborators Feb 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants