Re: [PATCH] Fix vector permutation forwprop optimization (PR tree-optimization/54610)

2012-09-18 Thread Richard Guenther
On Tue, Sep 18, 2012 at 2:20 PM, Jakub Jelinek wrote: > Hi! > > vect_gen_perm_mask is not suitable for use outside of the vectorizer, > it uses current vector size to determine the number of units of a vector, > which isn't something that should be used outside of the vectorizer. > > The following

[PATCH] Fix vector permutation forwprop optimization (PR tree-optimization/54610)

2012-09-18 Thread Jakub Jelinek
Hi! vect_gen_perm_mask is not suitable for use outside of the vectorizer, it uses current vector size to determine the number of units of a vector, which isn't something that should be used outside of the vectorizer. The following patch just does construct the mask inline, it is not that long cod