Re: V2 [PATCH] i386: Use scalar operand in SF/DF/SI/DI vec_dup patterns

2018-11-01 Thread Uros Bizjak
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

V2 [PATCH] i386: Use scalar operand in SF/DF/SI/DI vec_dup patterns

2018-10-30 Thread H.J. Lu
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

Re: [PATCH] i386: Use scalar operand in SF/DF/SI/DI vec_dup patterns

2018-10-29 Thread Uros Bizjak
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.

[PATCH] i386: Use scalar operand in SF/DF/SI/DI vec_dup patterns

2018-10-26 Thread H.J. Lu
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