-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Fix VN incorrect optimizations with a new JitEEInterface function. #57282
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
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d579fe5
Add/return tests.
56361dd
improve the test naming.
f239a37
Add a new JitEE method.
f40a7dc
Handle generically dissimilar type concerns as well as handle derived…
davidwrighton fb0e901
Fix the field and Unsafe issues.
17432ca
fix some failures.
34c4edb
Fix an oooold bug in VN.
a4add9d
Add new test cases and a fix for them.
fe65446
correct a test copy paste
e438e3d
response review.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
correct a test copy paste
- Loading branch information
There are no files selected for viewing
57 changes: 26 additions & 31 deletions
57
src/tests/JIT/Regression/JitBlue/Runtime_57282/Runtime_57282_2.cs
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,78 +1,73 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| // Generated by Fuzzlyn v1.2 on 2021-08-16 12:59:38 | ||
| // Generated by Fuzzlyn v1.2 on 2021-08-16 12:56:37 | ||
| // Run on .NET 6.0.0-dev on X64 Windows | ||
| // Seed: 9053537220764489964 | ||
| // Reduced from 104.8 KiB to 0.8 KiB in 00:00:44 | ||
| // Debug: Outputs 1, 0 | ||
| // Release: Outputs 1, 1 | ||
| // Seed: 10782465293682251646 | ||
| // Reduced from 129.7 KiB to 0.8 KiB in 00:01:40 | ||
| // Debug: Outputs 0 | ||
| // Release: Outputs 1 | ||
| struct S0 | ||
| { | ||
| public short F0; | ||
| public short F1; | ||
| public ushort F4; | ||
| public S0(short f1) : this() | ||
| public int F2; | ||
| public short F3; | ||
| public short F4; | ||
| public S0(short f4) : this() | ||
| { | ||
| F1 = f1; | ||
| F4 = f4; | ||
| } | ||
| } | ||
|
|
||
| struct S1 | ||
| { | ||
| public S0 F0; | ||
| public int F3; | ||
| public S1(S0 f0) : this() | ||
| { | ||
| F0 = f0; | ||
| } | ||
| } | ||
|
|
||
| struct S2 | ||
| { | ||
| public S1 F1; | ||
| public S0 F2; | ||
| public S2(S1 f1) : this() | ||
| { | ||
| F1 = f1; | ||
| } | ||
| } | ||
|
|
||
| struct S3 | ||
| { | ||
| public S2 F0; | ||
| public S3(S2 f0) : this() | ||
| public S1 F0; | ||
| public S3(S1 f0) : this() | ||
| { | ||
| F0 = f0; | ||
| } | ||
| } | ||
|
|
||
| struct S4 | ||
| { | ||
| public sbyte F4; | ||
| public S3 F5; | ||
| public S4(S3 f5) : this() | ||
| public ushort F3; | ||
| public S3 F4; | ||
| public S4(S3 f4) : this() | ||
| { | ||
| F5 = f5; | ||
| F4 = f4; | ||
| } | ||
| } | ||
|
|
||
| public class Program | ||
| { | ||
| static S0[] s_9 = new S0[] { new S0(0) }; | ||
|
|
||
| public static int Test() | ||
| { | ||
| S4 vr0 = new S4(new S3(new S2(new S1(new S0(1))))); | ||
| System.Console.WriteLine(vr0.F5.F0.F1.F0.F1); | ||
| System.Console.WriteLine(vr0.F5.F0.F1.F0.F4); | ||
| return vr0.F5.F0.F1.F0.F1 + vr0.F5.F0.F1.F0.F4; | ||
| S0 vr4 = default(S0); | ||
| S4 vr5 = new S4(new S3(new S1(new S0(1)))); | ||
| s_9[0].F4 = vr5.F4.F0.F0.F4; | ||
| System.Console.WriteLine(vr4.F1); | ||
| return vr4.F1; | ||
| } | ||
|
|
||
| public static int Main() | ||
| { | ||
| if (Test() == 1) | ||
| if (Test() == 0) | ||
| { | ||
| return 100; | ||
| } | ||
| return 101; | ||
|
|
||
| } | ||
|
|
||
| } | ||
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.
Uh oh!
There was an error while loading. Please reload this page.