TCG constant propagation.
commit5df3a524fc0b923cf2e5e1883ff550d055d36eb5
authorFilip Navara <filip.navara@gmail.com>
Tue, 21 Jul 2009 14:31:40 +0000 (21 16:31 +0200)
committerFilip Navara <filip.navara@gmail.com>
Sat, 1 Aug 2009 11:44:00 +0000 (1 13:44 +0200)
tree59621ee502ab6267cc602b61da0cf10dce347e7b
parent430c1ad18e231727cbf00d1e8a2415ecba5128a2
TCG constant propagation.

Add support for constant propagation to TCG. This has to be paired with the liveness
analysis to remove the dead code. Not all possible operations are covered, but the
most common ones are. This improves the code generation for several ARM instructions,
like MVN (immediate), and it may help other targets as well.

v1 -> v2:
Added profiling code and hopefully fixed for 64-bit TCG targets.
v2 -> v3:
Another attempt at fixing the support for 64-bit TCG targets.

Signed-off-by: Filip Navara <filip.navara@gmail.com>
tcg/tcg.c
tcg/tcg.h