Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix madeChanges in fgInline (#57782)
- Loading branch information
Showing
3 changed files
with
78 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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 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,52 @@ | ||
// 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.3 on 2021-08-19 21:40:28 | ||
// Run on .NET 6.0.0-dev on X64 Windows | ||
// Seed: 17821235008355468541 | ||
// Reduced from 60.7 KiB to 0.8 KiB in 00:42:23 | ||
// Exits with error: | ||
// | ||
// Assert failure(PID 35672 [0x00008b58], Thread: 10196 [0x27d4]): Assertion failed 'm_compGenTreeID == m_compiler->compGenTreeID' in 'Program:Foo(System.Object)' during 'Morph - Inlining' (IL size 55) | ||
// | ||
// File: D:\dev\dotnet\runtime\src\coreclr\jit\phase.cpp Line: 47 | ||
// Image: D:\dev\Fuzzlyn\Fuzzlyn\publish\windows-x64\Fuzzlyn.exe | ||
// | ||
// | ||
|
||
using System; | ||
using System.Runtime.CompilerServices; | ||
|
||
public class Program | ||
{ | ||
internal static object s_rt; | ||
internal static ulong[, ] s_3; | ||
internal static byte s_7; | ||
internal static ulong[] s_16; | ||
public static int Main() | ||
{ | ||
try | ||
{ | ||
Foo(null); | ||
} | ||
catch (NullReferenceException) | ||
{ | ||
return 100; | ||
} | ||
return 101; | ||
} | ||
|
||
public static void Foo(object o) | ||
{ | ||
s_rt = o; | ||
var vr3 = new sbyte[]{0}; | ||
var vr4 = s_3[0, 0]; | ||
var vr5 = s_3[0, 0]; | ||
M16(vr3, 0, ref s_16, 0, vr4, vr5, (uint)(s_7 | 0), 0); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.NoInlining)] | ||
internal static void M16(sbyte[] arg0, short arg1, ref ulong[] arg2, byte arg3, ulong arg4, ulong arg5, uint arg6, uint arg7) | ||
{ | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/tests/JIT/opt/Inline/tests/Inline_DetectChanges.csproj
This file contains 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,10 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<DebugType>None</DebugType> | ||
<Optimize>True</Optimize> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="Inline_DetectChanges.cs" /> | ||
</ItemGroup> | ||
</Project> |