TCG: fix copy propagation
commite31b0a7c050711884ad570fe73df806520953618
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 6 Aug 2011 13:58:47 +0000 (6 13:58 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 7 Aug 2011 09:33:20 +0000 (7 09:33 +0000)
treed2268fd649f1f2a5e154276918c2e9c243ca9534
parent97b348e7d221c94ddde609346407bd2cd6f85044
TCG: fix copy propagation

Copy propagation introduced in 22613af4a6d9602001e6d0e7b6d98aa40aa018dc
considered only global registers. However, register temps and stack
allocated locals must be handled differently because register temps
don't survive across brcond.

Fix by propagating only within same class of temps.

Tested-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
tcg/optimize.c
tcg/tcg.h