[PATCH] tcg: Init temp_subindex in liveness_pass_2

Richard Henderson posted 1 patch 1 year, 1 month ago
tcg/tcg.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] tcg: Init temp_subindex in liveness_pass_2
Posted by Richard Henderson 1 year, 1 month ago
Correctly handle large types while lowering.

Fixes: fac87bd2a49b ("tcg: Add temp_subindex to TCGTemp")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 tcg/tcg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tcg/tcg.c b/tcg/tcg.c
index fd557d55d3..bc60fd0fe8 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -3063,6 +3063,7 @@ static bool liveness_pass_2(TCGContext *s)
             TCGTemp *dts = tcg_temp_alloc(s);
             dts->type = its->type;
             dts->base_type = its->base_type;
+            dts->temp_subindex = its->temp_subindex;
             dts->kind = TEMP_EBB;
             its->state_ptr = dts;
         } else {
-- 
2.34.1
Re: [PATCH] tcg: Init temp_subindex in liveness_pass_2
Posted by Philippe Mathieu-Daudé 1 year, 1 month ago
On 3/2/23 23:59, Richard Henderson wrote:
> Correctly handle large types while lowering.
> 
> Fixes: fac87bd2a49b ("tcg: Add temp_subindex to TCGTemp")
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   tcg/tcg.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/tcg/tcg.c b/tcg/tcg.c
> index fd557d55d3..bc60fd0fe8 100644
> --- a/tcg/tcg.c
> +++ b/tcg/tcg.c
> @@ -3063,6 +3063,7 @@ static bool liveness_pass_2(TCGContext *s)
>               TCGTemp *dts = tcg_temp_alloc(s);
>               dts->type = its->type;
>               dts->base_type = its->base_type;
> +            dts->temp_subindex = its->temp_subindex;
>               dts->kind = TEMP_EBB;
>               its->state_ptr = dts;
>           } else {

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>