return tree;
}
- int foldCount = 0;
- unsigned int lclNum = op2->AsLclVarCommon()->GetLclNum();
+ int foldCount = 0;
+ unsigned lclNum = op2->AsLclVarCommon()->GetLclNum();
// Search for pattern of shape ADD(ADD(ADD(lclNum, lclNum), lclNum), lclNum).
while (true)
// V0 + V0 ... + V0 becomes V0 * foldCount, where postorder transform will optimize
// accordingly
- consTree->BashToConst(foldCount, lclVarTree->TypeGet());
+ consTree->BashToConst(foldCount, tree->TypeGet());
GenTree* morphed = gtNewOperNode(GT_MUL, tree->TypeGet(), lclVarTree, consTree);
DEBUG_DESTROY_NODE(tree);
--- /dev/null
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+public class Runtime_66269
+{
+ public static int Main()
+ {
+ return Problem(1) == 2 ? 100 : 101;
+ }
+
+ private static ushort Problem(ushort arg1)
+ {
+ arg1 += arg1;
+
+ return arg1;
+ }
+}
+
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">
+ <PropertyGroup>
+ <OutputType>Exe</OutputType>
+ <Optimize>True</Optimize>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="$(MSBuildProjectName).cs" />
+ </ItemGroup>
+</Project>
\ No newline at end of file