[interp] Optimize out conditional branches (#41628)
authormonojenkins <jo.shields+jenkins@xamarin.com>
Tue, 1 Sep 2020 21:01:53 +0000 (17:01 -0400)
committerGitHub <noreply@github.com>
Tue, 1 Sep 2020 21:01:53 +0000 (00:01 +0300)
commitef79765b6e5f656a3e41047e33afac24211f9752
tree9dea27040d538d912d415e41266bb841823943f6
parenteb22f4eb70cd6a21f123b40955813e2091173593
[interp] Optimize out conditional branches (#41628)

If we know the values of the arguments of a conditional branch, replace it with an unconditional branch. Once we have support for basic blocks, we can remove dead basic blocks and merge any adjacent ones.

Co-authored-by: BrzVlad <BrzVlad@users.noreply.github.com>
src/mono/mono/mini/interp/mintops.h
src/mono/mono/mini/interp/transform.c