[runtime] Added MONO_DEBUG=single-imm-size.
authorMarcos Henrich <marcos.henrich@xamarin.com>
Wed, 19 Aug 2015 19:05:42 +0000 (20:05 +0100)
committerMarcos Henrich <marcos.henrich@xamarin.com>
Fri, 28 Aug 2015 10:48:51 +0000 (11:48 +0100)
commit9e0d8418720ebd43251ae6ad45f5700b298da808
treeaeb78763fff0f6c2b8aac72fd85d0d5814b4a90d
parent2ef316dd5ceef7328c285dad7740743905f17e4d
[runtime] Added MONO_DEBUG=single-imm-size.

In amd64 when i8const are use with values within the first 32 bits
instructions and registers used can be optimized to their 32 bit
versions.

Setting MONO_DEBUG=single-imm-size variable disables such optimizations
and guarantee that the the generated native code size is independent
of the i8const values.
mono/mini/mini-amd64.c
mono/mini/mini-runtime.c
mono/mini/mini.h