Re: [PATCH] middle-end/100951 - make sure to generate VECTOR_CST in lowering

2021-06-09 Thread H.J. Lu via Gcc-patches
} > … > } > > I will give it a try. > > I can confirm that veclower leaves us with an unfolded constant CTOR. > If you file a PR to remind me I'll fix that. > > The attached untested patch fixes this for the testcase. > > Here i

Re: [PATCH] middle-end/100951 - make sure to generate VECTOR_CST in lowering

2021-06-09 Thread Jeff Law via Gcc-patches
e-to-generate-VECTOR_CST-i.patch From aac56894719b59e552b493c970946225ed8c27f6 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 7 Jun 2021 20:08:13 +0200 Subject: [PATCH] middle-end/100951 - make sure to generate VECTOR_CST in lowering When vector lowering creates piecewise ops make s

[PATCH] middle-end/100951 - make sure to generate VECTOR_CST in lowering

2021-06-08 Thread Richard Biener
When vector lowering creates piecewise ops make sure to create VECTOR_CSTs instead of CONSTRUCTORs when possible. Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. gcc/ 2021-06-07 Richard Biener PR middle-end/100951 * tree-vect-generic.c (expand_vector_piecewise):

[PATCH] middle-end/100951 - make sure to generate VECTOR_CST in lowering

2021-06-07 Thread H.J. Lu via Gcc-patches
== FIXED_CST) > > > > { > > > > rtx src = gen_const_vec_duplicate (mode, expand_normal > > > > (node)); > > > > emit_move_insn (target, src); > > > > break; > > > >