[jit] Simplify strength reduction code emitting when running cprop
authorVlad Brezae <brezaevlad@gmail.com>
Sat, 16 Jan 2016 00:20:51 +0000 (16:20 -0800)
committerVlad Brezae <brezaevlad@gmail.com>
Sat, 16 Jan 2016 01:19:27 +0000 (17:19 -0800)
commitf60b11a873bdacc152a5dfeb063b2dd9a8650b8f
tree28da7d30eed2f773577f92eb6ee92be3457a5088
parentda562c22e2fe6100e465598ef2baa96081ea9b52
[jit] Simplify strength reduction code emitting when running cprop

We allocate a temporary bb where we can emit the optimization of an instruction. After doing strength reduction, we verify if the bb has instructions, in which case we need to replace the original instruction with the optimized code.
mono/mini/local-propagation.c