BBF_HAS_IDX_LEN is not set on BB18 but is required because of the following tree
N006 ( 5, 4) [000209] ---X-------- * ARR_LENGTH int
N005 ( 3, 2) [000208] ------------ \--* LCL_VAR ref V02 loc1 u:1
C:\git\runtime\src\coreclr\jit\earlyprop.cpp:115
Assertion failed 'false' in 'System.DomainNameHelper:IdnEquivalent(System.String):System.String' during 'Early Value Propagation' (IL size 127)
ngendump.txt
To repro:
build.cmd clr+libs -rc Checked -lc Release
(Does not repro with -rc Debug.)
Then run:
{REPO_ROOT}\artifacts\bin\coreclr\windows.x64.Checked\ilc\ilc.exe @{REPO_ROOT}\artifacts\bin\repro\x64\Checked\compile-with-Release-libs.rsp --parallelism:1 --Ot --codegenopt:NGenDump=IdnEquivalent --singlemethodtypename=System.DomainNameHelper,System.Private.Uri --singlemethodname=IdnEquivalent
It might be convenient to use the Visual Studio solution at {REPO_ROOT}\src\coreclr\tools\aot\ilc.sln: open the solution, set project configuration to x64 Checked, in the Debug menu choose ILCompiler debug properties and set command line arguments to the arguments from the above command line. Make sure to also check Enable native code debugging. Hit F5 to run under debugger.
ngendump.txt
To repro:
(Does not repro with
-rc Debug.)Then run:
It might be convenient to use the Visual Studio solution at
{REPO_ROOT}\src\coreclr\tools\aot\ilc.sln: open the solution, set project configuration to x64 Checked, in the Debug menu choose ILCompiler debug properties and set command line arguments to the arguments from the above command line. Make sure to also check Enable native code debugging. Hit F5 to run under debugger.