This is the mail archive of the 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]

[PATCH] Use CONVERT_EXPR_P and friends in the middle-end

This fixes the few places where explicit checks for NOP_EXPR
or CONVERT_EXPRs crept in.

A noticable change may be the tree-eh.c one where we previously
considered FP NOP_EXPRs trapping if flag_trapping_math
("Any fp arithmetic may trap") but now like FP CONVERT_EXPRs
only when honor_nans (but for some reason the honor_nans
cases don't check flag_trapping_math).  I'm not 100% sure which
variant is more correct (this is FP <-> FP conversions thus
widenings, truncations, converts from/to DFP).

Bootstrap and regtest running on x86_64-unknown-linux-gnu.


2014-10-31  Richard Biener  <>

        * builtins.c (fold_builtin_atomic_always_lock_free): Use
        (fold_builtin_expect): Likewise.
        (integer_valued_real_p): Likewise.
        * cfgexpand.c (expand_debug_expr): Likewise.
        * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
        (find_foldable_builtin_expect): Likewise.
        * trans-mem.c (thread_private_new_memory): Likewise.
        * tree-affine.c (aff_combination_expand): Likewise.
        * tree-data-ref.c (initialize_matrix_A): Likewise.
        * tree-eh.c (operation_could_trap_helper_p): Likewise.
        * tree-inline.c (copy_bb): Likewise.
        * tree-pretty-print.c (dump_function_name): Likewise.
        (print_call_name): Likewise.
        * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
        * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
        * tree-vect-generic.c (expand_vector_operations_1): Likewise.
        * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
        (vect_recog_widen_mult_pattern): Likewise.
        (vect_operation_fits_smaller_type): Likewise.
        * tree-vrp.c (find_assert_locations_1): Likewise.
        * tree-ssa-dom.c (initialize_hash_element): Canonicalize
        converts to NOP_EXPR.

Attachment: p3
Description: Binary data

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