Re: [PATCH] Prep for PR88828 fix

2019-05-06 Thread Bernhard Reutner-Fischer
On 3 May 2019 18:48:09 CEST, "H.J. Lu" wrote: >On Fri, May 3, 2019 at 6:02 AM Richard Biener >wrote: >> >> >> The following refactors simplify_vector_constructor and adds >> handling of constants to it in a straight-forward way. >> >> A followup will handle the testcases posted in HJs patch. >> >

Re: [PATCH] Prep for PR88828 fix

2019-05-06 Thread Richard Biener
On Fri, 3 May 2019, H.J. Lu wrote: > On Fri, May 3, 2019 at 6:02 AM Richard Biener wrote: > > > > > > The following refactors simplify_vector_constructor and adds > > handling of constants to it in a straight-forward way. > > > > A followup will handle the testcases posted in HJs patch. ... > > -

Re: [PATCH] Prep for PR88828 fix

2019-05-03 Thread H.J. Lu
if (conv_code == ERROR_MARK) > gimple_assign_set_rhs_with_ops (gsi, VEC_PERM_EXPR, orig[0], > orig[1], op2); > + else if (TREE_CODE (orig[1]) == VECTOR_CST) > + { > + gimple *conv > + = gimple_build_assig

[PATCH] Prep for PR88828 fix

2019-05-03 Thread Richard Biener
The following refactors simplify_vector_constructor and adds handling of constants to it in a straight-forward way. A followup will handle the testcases posted in HJs patch. Bootstrap / regtest running on x86_64-unknown-linux-gnu. Richard. 2019-05-03 Richard Biener PR tree-optimiz