This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch][autovect]Add option ftree-vect-loop-version



On Mar 17, 2005, at 11:14 PM, Keith Besaw wrote:


This patch adds the ftree-vect-loop-version option.

Data alignment and data dependencies that cannot be determined at
compile-time may inhibit vectorization. One way around this is to
generate
a vectorized version along with the original scalar version of a loop and
add
runtime alignment or dependence checks that determine which loop is
actually
executed. Because this can cause code bloat this patch adds a new option
so that loop versioning for vectorization can be turned off.


The default is to perform loop versioning when the ftree-vectorize option
is specified.
fno-tree-vect-loop-version is used to turn off vectorizing by loop
versioning.

Just a thought, do we want to tie this with optimization for size flag, -Os also. I mean if -Os is used, turn off -ftree-vect-loop-version by default.

-
Devang


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]