Skip to content

Commit 1fb151f

Browse files
author
Sergey Andreenko
authored
Add a forgotten fgMorphInitBlock to fix jitstress issue. (#56893)
* reenable the failing tests. * Fix a jitstress failure on x86.
1 parent 017e701 commit 1fb151f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/coreclr/jit/morph.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16169,6 +16169,10 @@ void Compiler::fgMergeBlockReturn(BasicBlock* block)
1616916169
{
1617016170
tree = fgMorphCopyBlock(tree);
1617116171
}
16172+
else if (tree->OperIsInitBlkOp())
16173+
{
16174+
tree = fgMorphInitBlock(tree);
16175+
}
1617216176

1617316177
if (pAfterStatement == lastStmt)
1617416178
{

src/tests/Interop/PInvoke/Vector2_3_4/Vector2_3_4.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<!-- https://github.com/dotnet/runtime/issues/49189 -->
5-
<JitOptimizationSensitive Condition="'$(TargetArchitecture)' == 'x86'">true</JitOptimizationSensitive>
64
</PropertyGroup>
75
<ItemGroup>
86
<Compile Include="*.cs" />

src/tests/JIT/Methodical/xxobj/ldobj/_il_relldobj_V.ilproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
44
<CLRTestPriority>1</CLRTestPriority>
5-
<!-- https://github.com/dotnet/runtime/issues/49189 -->
6-
<JitOptimizationSensitive Condition="'$(TargetArchitecture)' == 'x86'">true</JitOptimizationSensitive>
75
</PropertyGroup>
86
<PropertyGroup>
97
<DebugType>PdbOnly</DebugType>

0 commit comments

Comments
 (0)