This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Vector<T>.ctor(T val) is not recognized for ubyte/byte/short/ushort when the arg is a local of small int type (e.g. method args).#7683
Merged
Conversation
Member
Author
|
@CarolEidt - please review this. |
when the arg is a local of small int type (e.g. method args).
Member
Author
|
Updated with formatting changes. |
|
Thanks for fixing this. I was wondering why this wasn't caught by the jitLog testing that I added to the SIMD tests, but it seems that I omitted the non-array .ctors. It would be good to add tests for that - presumably the VectorInit.cs case should be beefed up a bit and add the jitLog testing to it. In reply to: 254376644 [](ancestors = 254376644) |
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Kesteral server constructs
Vector<byte>vectors and reported this issue(#7459).Here is a reduced repro case:
IR:
Here argType is TYP_UBYTE and expectedArgType is TYP_INT and as a result, .ctor is not recognized as an intrinsic. The fix is that when expected type is given by baseType, use genActualType of argType for comparing against expectedArgType.
Asm diffs across all SIMD tests indicate, even similar issue exists for other small type vectors.
On SSE2 there is 1555 bytes of code size win over 60 methods that got impacted (3.95%).
Fix #7459