Re: [PATCH] Fix PR 10153: tail recusion for vector types.

2021-07-22 Thread Richard Biener via Gcc-patches
On Wed, Jul 21, 2021 at 9:30 PM apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > The problem here is we try to an initialized value > from a scalar constant. For vectors we need to do > a vect_dup instead. This fixes that issue by using > build_{one,zero}_cst instead of integer_{one

[PATCH] Fix PR 10153: tail recusion for vector types.

2021-07-21 Thread apinski--- via Gcc-patches
From: Andrew Pinski The problem here is we try to an initialized value from a scalar constant. For vectors we need to do a vect_dup instead. This fixes that issue by using build_{one,zero}_cst instead of integer_{one,zero}_node when calling create_tailcall_accumulator. Changes from v1: * v2: Us

Re: [PATCH] Fix PR 10153: tail recusion for vector types.

2021-07-21 Thread Richard Biener via Gcc-patches
On Wed, Jul 21, 2021 at 12:03 AM apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > The problem here is we try to an initialized value > from a scalar constant. For vectors we need to do > a vect_dup instead. This fixes that issue and we > get the correct code even and it does not cra

[PATCH] Fix PR 10153: tail recusion for vector types.

2021-07-20 Thread apinski--- via Gcc-patches
From: Andrew Pinski The problem here is we try to an initialized value from a scalar constant. For vectors we need to do a vect_dup instead. This fixes that issue and we get the correct code even and it does not crash. OK? Bootstrapped and tested on aarch64-linux-gnu with no regressions. gcc/C