qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 02/48] tcg/optimize: Split out OptContext


From: Richard Henderson
Subject: Re: [PATCH v2 02/48] tcg/optimize: Split out OptContext
Date: Tue, 19 Oct 2021 08:37:21 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 10/19/21 8:25 AM, Alex Bennée wrote:
-    TCGTempSet temps_used;
+    OptContext ctx = {};
/* Array VALS has an element for each temp.
         If this temp holds a constant then its value is kept in VALS' element.
@@ -615,7 +619,6 @@ void tcg_optimize(TCGContext *s)
      nb_temps = s->nb_temps;
      nb_globals = s->nb_globals;
- memset(&temps_used, 0, sizeof(temps_used));

Did you mean to drop this memset entirely given I see it being done
later on?

It went to the struct initialization above.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]