qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tcg/tcg: Avoid TS_DEAD for basic block ending
@ 2023-03-21  4:53 LIU Zhiwei
  2023-03-21  6:06 ` Richard Henderson
  0 siblings, 1 reply; 4+ messages in thread
From: LIU Zhiwei @ 2023-03-21  4:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: richard.henderson, LIU Zhiwei

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_liu@linux.alibaba.com>
---
 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:
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-21 15:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-21  4:53 [PATCH] tcg/tcg: Avoid TS_DEAD for basic block ending LIU Zhiwei
2023-03-21  6:06 ` Richard Henderson
2023-03-21  6:44   ` LIU Zhiwei
2023-03-21 15:39     ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).