On Tue, Oct 30, 2018 at 9:36 PM H.J. Lu wrote:
> > Why not at the expand time? Rewrite vector constant as vec_duplicate
> > from memory and combine will do the stuff for you. We do have _bcst
> > instruction patterns.
> >
>
> Here is the updated patch to do that. OK for trunk?
Looks mostly good
do the stuff for you. We do have _bcst
> instruction patterns.
>
Here is the updated patch to do that. OK for trunk?
Thanks.
--
H.J.
From 0c2ffe8a627c64263805baba8c9d9754dbb30f4b Mon Sep 17 00:00:00 2001
From: "H.J. Lu"
Date: Tue, 2 Oct 2018 14:27:55 -0700
Subject: [PATCH] i386: Use scal
On Sat, Oct 27, 2018 at 8:03 AM H.J. Lu wrote:
>
> Use scalar operand in SF/DF/SI/DI vec_dup patterns which enables combiner
> to generate
>
> (set (reg:V8SF 84)
> (vec_duplicate:V8SF (mem/c:SF (symbol_ref:DI ("y")
>
> const_vector_duplicate_operand is added for constant vector broadcast.
Use scalar operand in SF/DF/SI/DI vec_dup patterns which enables combiner
to generate
(set (reg:V8SF 84)
(vec_duplicate:V8SF (mem/c:SF (symbol_ref:DI ("y")
const_vector_duplicate_operand is added for constant vector broadcast.
We split
(set (reg:V16SF 86)
(const_vector:V16SF