|
From: | Richard Henderson |
Subject: | Re: [PATCH v2 05/48] tcg/optimize: Move prev_mb into OptContext |
Date: | Tue, 19 Oct 2021 08:59:12 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 10/19/21 8:44 AM, Alex Bennée wrote:
@@ -609,7 +610,7 @@ static bool swap_commutative2(TCGArg *p1, TCGArg *p2) void tcg_optimize(TCGContext *s) { int nb_temps, nb_globals, i; - TCGOp *op, *op_next, *prev_mb = NULL; + TCGOp *op, *op_next; OptContext ctx = { .tcg = s };Do we need to add .prev_mb = NULL to ensure the ctx doesn't start corrupted or does the partial initialisation ensure the rest is zeroed out?
All members not explicitly initialized are zeroed.
Otherwise: Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
r~
[Prev in Thread] | Current Thread | [Next in Thread] |