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] |
Hello, Based on the latest discussions about the definition of the flags; I am resubmitting the patch. Thanks, Revital 2006-11-23 Revital Eres <eres@il.ibm.com> Richard Guenther <rguenther@suse.de> R. Clint Whaley <whaley@cs.utsa.edu> * doc/invoke.texi: Document -fassociative-math and -freciprocal-math. * tree-tailcall.c (process_assignment): Use -fassociative-math when reodering operands of floating-point type. * fold-const.c (negate_expr_p, fold_comparison, fold_binary): Use -fassociative-math and -freciprocal-math. * toplev.h (set_unsafe_math_optimizations_flags): Declare function. * tree-ssa-math-opts.c (gate_cse_reciprocals): Use -freciprocal-math instead of -funsafe-math-optimizations. * opts.c (common_handle_option): Call set_unsafe_math_optimizations_flags. (set_fast_math_flags): Set -freciprocal-math and -fassociative-math when -ffast-math is set. (set_unsafe_math_optimizations_flags): New Function to set -freciprocal-math and -fassociative-math when -funsafe-math-optimizations is set. * tree-vectorizer.c (vect_is_simple_reduction): Use -fassociative-math when doing reduction on floats. * loop-unroll.c (analyze_insn_to_expand_var): Use -fassociative-math when expanding an accumulator of type float. * simplify-rtx.c (simplify_binary_operation_1): Use -fassociative-math and -freciprocal-math when reodering operands of floating-point type. * combine.c (apply_distributive_law): Likewise. (combine_simplify_rtx): Use -freciprocal-math instead of -funsafe-math-optimizations in reciprocal operations. * tree-ssa-reassoc.c (break_up_subtract_bb, reassociate_bb): Likewise. * common.opt: Declare new flags -fassociative-math and -freciprocal-math. (See attached file: patch_diff)
Attachment:
patch_diff
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |