-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JIT: Don't fold NEG(NEG(X)) to X when NEG(x) is a CSE candidate (#57478)
- Loading branch information
Showing
3 changed files
with
67 additions
and
4 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,50 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
// | ||
// This file is auto-generated. | ||
// Seed: -1 | ||
// | ||
using System; | ||
using System.Runtime.CompilerServices; | ||
public class TestClass8505 | ||
{ | ||
static int s_int32_6 = -5; | ||
static sbyte s_sbyte_8 = 2; | ||
static int s_loopInvariant = 3; | ||
public sbyte LeafMethod8() | ||
{ | ||
unchecked | ||
{ | ||
return s_sbyte_8 <<= s_int32_6 >>= s_int32_6 ^ (-2 - (s_int32_6 &= -5)) / (-1 * s_int32_6 * (2 ^ -2)) + 77; | ||
} | ||
} | ||
public void Method0() | ||
{ | ||
unchecked | ||
{ | ||
try | ||
{ | ||
} | ||
finally | ||
{ | ||
{ | ||
int __loopvar1 = s_loopInvariant, __loopSecondaryVar1_0 = 15 - 4; | ||
do | ||
{ | ||
} | ||
while (15 % 4 > LeafMethod8() / 15 + 4); | ||
} | ||
{ | ||
} | ||
} | ||
return; | ||
} | ||
} | ||
public static int Main(string[] args) | ||
{ | ||
TestClass8505 objTestClass8505 = new TestClass8505(); | ||
objTestClass8505.Method0(); | ||
return 100; | ||
} | ||
} |
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,9 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<DebugType>None</DebugType> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="GitHub_57470.cs" /> | ||
</ItemGroup> | ||
</Project> |