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  <rguent...@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

Reply via email to