Add a forgotten `fgMorphInitBlock` to fix jitstress issue. (#56893)
authorSergey Andreenko <seandree@microsoft.com>
Thu, 5 Aug 2021 19:47:13 +0000 (12:47 -0700)
committerGitHub <noreply@github.com>
Thu, 5 Aug 2021 19:47:13 +0000 (12:47 -0700)
* reenable the failing tests.

* Fix  a jitstress failure on x86.

src/coreclr/jit/morph.cpp
src/tests/Interop/PInvoke/Vector2_3_4/Vector2_3_4.csproj
src/tests/JIT/Methodical/xxobj/ldobj/_il_relldobj_V.ilproj

index af23a79..6bde695 100644 (file)
@@ -16169,6 +16169,10 @@ void Compiler::fgMergeBlockReturn(BasicBlock* block)
             {
                 tree = fgMorphCopyBlock(tree);
             }
+            else if (tree->OperIsInitBlkOp())
+            {
+                tree = fgMorphInitBlock(tree);
+            }
 
             if (pAfterStatement == lastStmt)
             {
index 1e83684..78c3de2 100644 (file)
@@ -1,8 +1,6 @@
 <Project Sdk="Microsoft.NET.Sdk">
   <PropertyGroup>
     <OutputType>Exe</OutputType>
-    <!-- https://github.com/dotnet/runtime/issues/49189 -->
-    <JitOptimizationSensitive Condition="'$(TargetArchitecture)' == 'x86'">true</JitOptimizationSensitive>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="*.cs" />
index 3655ae3..00f4af8 100644 (file)
@@ -2,8 +2,6 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <CLRTestPriority>1</CLRTestPriority>
-    <!-- https://github.com/dotnet/runtime/issues/49189 -->
-    <JitOptimizationSensitive Condition="'$(TargetArchitecture)' == 'x86'">true</JitOptimizationSensitive>
   </PropertyGroup>
   <PropertyGroup>
     <DebugType>PdbOnly</DebugType>