Re: [PATCH] Fix PR63665

2014-10-29 Thread Eric Botcazou
2014-10-28 Richard Biener rguent...@suse.de PR tree-optimization/63665 * tree-vect-slp.c (vect_get_mask_element): Properly handle accessing out-of-bound elements. Does fix it the assertion failure on the attached testcase? If so, would you mind committing the testcase

Re: [PATCH] Fix PR63665

2014-10-29 Thread Richard Biener
On Wed, Oct 29, 2014 at 10:04 AM, Eric Botcazou ebotca...@adacore.com wrote: 2014-10-28 Richard Biener rguent...@suse.de PR tree-optimization/63665 * tree-vect-slp.c (vect_get_mask_element): Properly handle accessing out-of-bound elements. Does fix it the assertion

[PATCH] Fix PR63665

2014-10-28 Thread Richard Biener
The following fixes folding of x + CST != CST with -fwrapv. Even with -fwrapv overflow is signalled by int_const_binop with TREE_OVERFLOW but of course we cannot do any undefined overflow optimizations when overflow wraps. bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard.

[PATCH] Fix PR63665

2014-10-28 Thread Richard Biener
It seems that SLP vectorization can somehow generate out-of-bound masks for VEC_PERM. The following fixes that (the ICE reproduces on x86_64 with the added assert). Bootstrap and regtest running on x86_64-unknown-linux-gnu. Richard. 2014-10-28 Richard Biener rguent...@suse.de PR