replaceConstantRegisters

fun replaceConstantRegisters()

Replace constant-valued registers with fresh registers that have no definitions. The JVM code generator will recognize that these are constants, and produce code to produce them on the JVM stack by reading the constants pool or via special instructions for int/double constants.