: Re: [PATCH] RISC-V: Enable SLP un-order reduction
Hi Juzhe,
> +;; -
> +;; [INT,FP] Initialize from individual elements
> +;; -
>
Hi Juzhe,
> +;; -
> +;; [INT,FP] Initialize from individual elements
> +;; -
> +;; Includes:
> +;; - vslide1up.vx/vfslide1up.vf
> +;; ---
This patch is to enable SLP un-order reduction autao-vectorization
Consider this following case:
int __attribute__((noipa))
add_loop (int *x, int n, int res)
{
for (int i = 0; i < n; ++i)
{
res += x[i * 2];
res += x[i * 2 + 1];
}
return res;
}
--param riscv-autovec-prefer