-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Stop spilling ldvirtftn #120866
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
+208
−9
Merged
Stop spilling ldvirtftn #120866
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
1c781c1
Stop spilling ldvirtftn
hez2010 a2a1d86
Try fixing assertion
hez2010 bdcaf94
Merge branch 'main' into ldvirtftn-no-spill
hez2010 98f9883
Merge branch 'main' into ldvirtftn-no-spill
hez2010 3c07e08
Try another fix
hez2010 9c01118
Merge branch 'main' into ldvirtftn-no-spill
hez2010 1998366
Fix NativeAOT fat pointer handling
hez2010 d058cb0
Minor refactor
hez2010 ee46acd
Revert lower change
hez2010 6c93a14
Remove out-of-scope change
hez2010 4b854f9
Optimize call target ordering in lowering
jakobbotsch a9ef09d
Generalize optimization
jakobbotsch 3853113
Remove commented code
jakobbotsch c228ca4
Spill side-effects for fat pointer handling before impPopCallArgs
hez2010 21e890b
Fix build break
hez2010 fed014d
Use impSpillSideEffects
hez2010 0c89273
Merge branch 'main' of github.com:dotnet/runtime into pr-120866
jakobbotsch e459630
Skip opt for debug codegen, do not call OperExceptions if we already …
jakobbotsch 00fd288
Add test
jakobbotsch ef94f07
Add some JITDUMP
jakobbotsch 56833e9
Revert a bunch of unrelated changes
hez2010 71ffa26
Feedback
jakobbotsch 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
50 changes: 50 additions & 0 deletions
50
src/tests/JIT/Regression/JitBlue/Runtime_121711/Runtime_121711.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 |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| using System; | ||
| using System.Runtime.CompilerServices; | ||
| using Xunit; | ||
|
|
||
| public class Runtime_121711 | ||
| { | ||
| [Fact] | ||
| public static int TestEntryPoint() | ||
| { | ||
| try | ||
| { | ||
| Test(null); | ||
| return 101; | ||
| } | ||
| catch (NullReferenceException) | ||
| { | ||
| return _exitCode; | ||
| } | ||
| } | ||
|
|
||
| [MethodImpl(MethodImplOptions.NoInlining)] | ||
| private static void Test(Base b) | ||
| { | ||
| b.Foo<string>(Bar()); | ||
| } | ||
|
|
||
| [MethodImpl(MethodImplOptions.NoInlining)] | ||
| private static int Bar() | ||
| { | ||
| _exitCode = 100; | ||
| return 42; | ||
| } | ||
|
|
||
| private static int _exitCode = 102; | ||
| } | ||
|
|
||
| public abstract class Base | ||
| { | ||
| public abstract void Foo<T>(int x); | ||
| } | ||
|
|
||
| public class Derived : Base | ||
| { | ||
| public override void Foo<T>(int x) | ||
| { | ||
| } | ||
| } |
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
Oops, something went wrong.
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.