On Sat, Sep 1, 2012 at 4:38 PM, Marc Glisse wrote:
> Hello,
>
> I noticed while writing the patch posted at:
> http://gcc.gnu.org/ml/gcc-patches/2012-08/msg01755.html
>
> that fold_ternary_loc sometimes doesn't go all the way for VEC_PERM_EXPR,
> calling it a second time would fold even more. Fixe
On Sun, 2 Sep 2012, Hans-Peter Nilsson wrote:
On Sat, 1 Sep 2012, Marc Glisse wrote:
gcc/
* fold-const.c (fold_ternary_loc): Constant-propagate after
removing dead operands.
gcc/testsuite/
* gcc.dg/fold-perm.c: Improve test.
(adding a line and a parameter to the funct
On Sat, 1 Sep 2012, Marc Glisse wrote:
> gcc/
> * fold-const.c (fold_ternary_loc): Constant-propagate after
> removing dead operands.
>
> gcc/testsuite/
> * gcc.dg/fold-perm.c: Improve test.
(adding a line and a parameter to the function containing the test-code)
JFTR: generally
Hello,
I noticed while writing the patch posted at:
http://gcc.gnu.org/ml/gcc-patches/2012-08/msg01755.html
that fold_ternary_loc sometimes doesn't go all the way for VEC_PERM_EXPR,
calling it a second time would fold even more. Fixed by a simple
reordering.
(bootstrap and testsuite are ok)