On 3/20/23 21:53, LIU Zhiwei wrote:
TS_DEAD means we will release the register allocated for this temporary. But
at basic block ending, we can still use the allocted register.
Signed-off-by: LIU Zhiwei <zhiwei_...@linux.alibaba.com>
Test case?
r~
---
tcg/tcg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tcg/tcg.c b/tcg/tcg.c
index bb52bc060b..0c93e6e6f8 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -2822,7 +2822,7 @@ static void la_bb_end(TCGContext *s, int ng, int nt)
case TEMP_FIXED:
case TEMP_GLOBAL:
case TEMP_TB:
- state = TS_DEAD | TS_MEM;
+ state = TS_MEM;
break;
case TEMP_EBB:
case TEMP_CONST: