PR/19210: Add -{f,W}unsafe-loop-optimizations
Geoff Keating
geoffk@apple.com
Wed Jul 20 21:23:00 GMT 2005
> 2005-05-05 Paolo Bonzini <bonzini@gnu.org>
> Zdenek Dvorak <dvorakz@suse.cz>
>
> PR tree-optimization/19210
> * common.opt (Wunsafe-loop-optimizations, funsafe-loop-
> optimizations):
> New.
> * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
> * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-
> optimizations,
> rely on unproven assumptions.
> * predict.c (predict_loops): Adjust call to
> number_of_iterations_exit.
> * tree-flow.h (number_of_iterations_exit): Add final
> parameter.
> * tree-scalar-evolution.c (number_of_iterations_in_loop):
> Adjust call
> to number_of_iterations_exit.
> * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
> * tree-ssa-niter.c (find_loop_niter,
> estimate_numbers_of_iterations_loop): Likewise.
> (number_of_iterations_exit): Honor the new options.
> * doc/invoke.texi (Wunsafe-loop-optimizations,
> funsafe-loop-optimizations): Document them.
>
> testsuite:
> 2005-05-05 Paolo Bonzini <bonzini@gnu.org>
>
> * gcc.dg/tree-ssa/pr19210-1.c: New.
> * gcc.dg/tree-ssa/pr19210-2.c: New.
This is OK. I'm not really sure about the wisdom of *using* the
switches, and would certainly object to either being on by default
(or with some group like -Wextra or -O3), but if people want to shoot
themselves in the foot in the name of performance, let's let them!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2408 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050720/93e05052/attachment.p7s>
More information about the Gcc-patches
mailing list