Re: [i386] Simplify vector_all_ones_operand

2015-08-20 Thread Uros Bizjak
On Thu, Aug 20, 2015 at 12:02 PM, Richard Sandiford wrote: > gen_rtx_CONST_VECTOR ensures that there is a single instance of: > >(const_vector:M [(const_int -1) ... (const_int -1)]) > > for each M, so pointer equality with CONSTM1_RTX is enough. > > This seemed like a better fix than using the

[i386] Simplify vector_all_ones_operand

2015-08-20 Thread Richard Sandiford
gen_rtx_CONST_VECTOR ensures that there is a single instance of: (const_vector:M [(const_int -1) ... (const_int -1)]) for each M, so pointer equality with CONSTM1_RTX is enough. This seemed like a better fix than using the helper functions that I'm about to post. Bootstrapped & regression-te