Re: [PATCH] Enable vectorizer cost model by default at -O3

2012-07-16 Thread Richard Guenther
On Sun, 15 Jul 2012, William J. Schmidt wrote: > The auto-vectorizer is overly aggressive when not constrained by the > vectorizer cost model. Although the cost model is by no means perfect, > it does a reasonable job of avoiding many poor vectorization decisions. > Since the auto-vectorizer is e

[PATCH] Enable vectorizer cost model by default at -O3

2012-07-15 Thread William J. Schmidt
The auto-vectorizer is overly aggressive when not constrained by the vectorizer cost model. Although the cost model is by no means perfect, it does a reasonable job of avoiding many poor vectorization decisions. Since the auto-vectorizer is enabled by default at -O3 and above, we should also enabl