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]

[PATCH] Fix some missing CASE_CONVERTs, improve genmatch side-effect handling


The following replaces NOP_EXPR uses with CASE_CONVERT appropriately
and improves genmatch handling of side-effects for
captures used in C expressions.

Bootstrapped and tested on x86_64-unknow-linux-gnu, applied.

Richard.

2014-10-30  Richard Biener  <rguenther@suse.de>

        * genmatch.c (capture_info::walk_c_expr): Ignore capture
        uses inside TREE_TYPE ().
        * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
        (find_candidates_dom_walker::before_dom_children): Likewise.
        (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
        (replace_profitable_candidates): Likewise.
        * tree-ssa-dom.c (initialize_hash_element): Canonicalize
        CONVERT_EXPR_CODE_P to CONVERT_EXPR.
        * convert.c (convert_to_integer): Use CASE_CONVERT.

Attachment: p2
Description: Binary data


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