while java -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*Test*::* -XX:-TieredCompilation -Xcomp -XX:+StressIGVN -XX:VerifyIterativeGVN=10 Test.java; do :; done;
Missed Value optimization:
dist dump
---------------------------------------------
1 272 Phi === 523 88 34 [[ 386 550 276 376 319 366 548 408 410 571 ]] #int:-4..0 !orig=[397] !jvms: Test::vMeth @ bci:85 (line 118)
1 415 IfFalse === 413 [[ 522 548 ]] #0 !orig=439 !jvms: Test::vMeth @ bci:143 (line 127)
0 548 CastII === 415 272 [[ 547 ]] #int:-4..0 unconditional dependency
Current type:
int:-4..0
Optimized type:
int:-1
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (workspace/open/src/hotspot/share/opto/phaseX.cpp:1088), pid=1856529, tid=1856543
# assert(!failure) failed: Missed optimization opportunity in PhaseIterGVN
#
# JRE version: Java(TM) SE Runtime Environment (22.0+26) (fastdebug build 22-ea+26-2075)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 22-ea+26-2075, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x1511dbd] PhaseIterGVN::verify_optimize() [clone .part.0]+0x59d