diff mbox series

tcg: Init temp_subindex in liveness_pass_2

Message ID 20230203225928.4129774-1-richard.henderson@linaro.org
State New
Headers show
Series tcg: Init temp_subindex in liveness_pass_2 | expand

Commit Message

Richard Henderson Feb. 3, 2023, 10:59 p.m. UTC
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(+)

Comments

Philippe Mathieu-Daudé Feb. 4, 2023, 6:16 p.m. UTC | #1
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>
diff mbox series

Patch

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 {