[interp] Replace loading of static readonly fields with LDC (mono/mono#17420)
authorVlad Brezae <brezaevlad@gmail.com>
Mon, 21 Oct 2019 20:42:24 +0000 (23:42 +0300)
committerGitHub <noreply@github.com>
Mon, 21 Oct 2019 20:42:24 +0000 (23:42 +0300)
commit409cdd9ce57d8d44cce39700a593383a0f8ea7d1
tree91cc285e1206d718b4721499763f3635390845fd
parente25402650bc1e57c5c9aa9bc3484f436c7a208aa
[interp] Replace loading of static readonly fields with LDC (mono/mono#17420)

LDC is faster and also allows for constant propagation. Cleanup code a little bit.

Commit migrated from https://github.com/mono/mono/commit/c1461e4a2d9c539506b88af786c948ff8a8bad7d
src/mono/mono/mini/interp/transform.c