Re: [PATCH 1/2] Minor refactoring of tree-vect-patterns.c

2012-05-02 Thread Richard Guenther
On Mon, Apr 30, 2012 at 6:19 PM, Ulrich Weigand wrote: > Hello, > > in working on a fix for PR 52633, I noticed that tree-vect-patterns.c now > contains a number of copies of rather similar code (of which my patch > would have added another copy), so it seems to make sense to do a bit of > refacto

[PATCH 1/2] Minor refactoring of tree-vect-patterns.c

2012-04-30 Thread Ulrich Weigand
Hello, in working on a fix for PR 52633, I noticed that tree-vect-patterns.c now contains a number of copies of rather similar code (of which my patch would have added another copy), so it seems to make sense to do a bit of refactoring first. This patch introduced a new helper function "vect_same