diff options
author | zadeck <zadeck@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-23 18:46:18 +0000 |
---|---|---|
committer | zadeck <zadeck@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-23 18:46:18 +0000 |
commit | 0349edce82976f82d2fff3d7616a15de0b709795 (patch) | |
tree | ad36f33e801b9597515c079ef65870d2ac014614 /gcc/rtlanal.c | |
parent | 269185be7580959a581df3a314f13d5069db9f03 (diff) | |
download | gcc-0349edce82976f82d2fff3d7616a15de0b709795.tar.gz |
2012-08-23 Kenneth Zadeck <zadeck@naturalbridge.com>
* alias.c (rtx_equal_for_memref_p): Convert constant cases.
* combine.c (find_single_use_1, mark_used_regs_combine): Convert
to CASE_CONST_ANY.
* cse.c (exp_equiv_p, canon_reg, fold_rtx, cse_process_notes_1,
count_reg_usage): Convert constant cases.
* cselib.c (cselib_expand_value_rtx_1): Convert to
CASE_CONST_ANY.
(cselib_subst_to_values): Convert constant cases.
* df-scan.c (df_uses_record): Ditto.
* dse.c (const_or_frame_p): Convert case statements to explicit
if-then-else using mode classes.
* emit-rtl.c (verify_rtx_sharing, copy_insn_1): Convert constant cases.
* explow.c (convert_memory_address_addr_space): Ditto.
* gcse.c (want_to_gcse_p, oprs_unchanged_p, compute_transp): Ditto.
* genattrtab.c (attr_copy_rtx, clear_struct_flag): Ditto.
* ira.c (equiv_init_varies_p, contains_replace_regs,
memref_referenced_p, rtx_moveable_p): Ditto.
* jump.c (mark_jump_label_1): Remove constant cases.
(rtx_renumbered_equal_p): Convert to CASE_CONST_UNIQUE.
* loop-invariant.c (check_maybe_invariant, hash_invariant_expr_1,
invariant_expr_equal_p): Convert to CASE_CONST_ANY.
* postreload-gcse.c (oprs_unchanged_p): Convert constant cases.
* reginfo.c (reg_scan_mark_refs): Ditto.
* regrename.c (scan_rtx): Ditto.
* reload1.c (eliminate_regs_1, elimination_effects,
scan_paradoxical_subregs): Ditto.
* reload.c (operands_match_p, subst_reg_equivs): Ditto.
* resource.c (mark_referenced_resources, mark_set_resources): Ditto.
* rtlanal.c (rtx_unstable_p, rtx_varies_p, count_occurrences)
(reg_mentioned_p, modified_between_p, modified_in_p)
(volatile_insn_p, volatile_refs_p, side_effects_p, may_trap_p_1,
inequality_comparisons_p, computed_jump_p_1): Ditto.
* rtl.c (copy_rtx, rtx_equal_p_cb, rtx_equal_p): Ditto.
* sched-deps.c (sched_analyze_2): Ditto.
* valtrack.c (cleanup_auto_inc_dec): Ditto.
* rtl.h: (CASE_CONST_SCALAR_INT, CASE_CONST_UNIQUE,
CASE_CONST_ANY): New macros.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190627 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 60 |
1 files changed, 12 insertions, 48 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index eeb012dfa84..0f791e2e4df 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -97,10 +97,7 @@ rtx_unstable_p (const_rtx x) return !MEM_READONLY_P (x) || rtx_unstable_p (XEXP (x, 0)); case CONST: - case CONST_INT: - case CONST_DOUBLE: - case CONST_FIXED: - case CONST_VECTOR: + CASE_CONST_ANY: case SYMBOL_REF: case LABEL_REF: return 0; @@ -170,10 +167,7 @@ rtx_varies_p (const_rtx x, bool for_alias) return !MEM_READONLY_P (x) || rtx_varies_p (XEXP (x, 0), for_alias); case CONST: - case CONST_INT: - case CONST_DOUBLE: - case CONST_FIXED: - case CONST_VECTOR: + CASE_CONST_ANY: case SYMBOL_REF: case LABEL_REF: return 0; @@ -585,10 +579,7 @@ count_occurrences (const_rtx x, const_rtx find, int count_dest) switch (code) { case REG: - case CONST_INT: - case CONST_DOUBLE: - case CONST_FIXED: - case CONST_VECTOR: + CASE_CONST_ANY: case SYMBOL_REF: case CODE_LABEL: case PC: @@ -690,10 +681,7 @@ reg_mentioned_p (const_rtx reg, const_rtx in) case PC: return 0; - case CONST_INT: - case CONST_VECTOR: - case CONST_DOUBLE: - case CONST_FIXED: + CASE_CONST_ANY: /* These are kept unique for a given value. */ return 0; @@ -887,10 +875,7 @@ modified_between_p (const_rtx x, const_rtx start, const_rtx end) switch (code) { - case CONST_INT: - case CONST_DOUBLE: - case CONST_FIXED: - case CONST_VECTOR: + CASE_CONST_ANY: case CONST: case SYMBOL_REF: case LABEL_REF: @@ -946,10 +931,7 @@ modified_in_p (const_rtx x, const_rtx insn) switch (code) { - case CONST_INT: - case CONST_DOUBLE: - case CONST_FIXED: - case CONST_VECTOR: + CASE_CONST_ANY: case CONST: case SYMBOL_REF: case LABEL_REF: @@ -2095,11 +2077,8 @@ volatile_insn_p (const_rtx x) { case LABEL_REF: case SYMBOL_REF: - case CONST_INT: case CONST: - case CONST_DOUBLE: - case CONST_FIXED: - case CONST_VECTOR: + CASE_CONST_ANY: case CC0: case PC: case REG: @@ -2160,11 +2139,8 @@ volatile_refs_p (const_rtx x) { case LABEL_REF: case SYMBOL_REF: - case CONST_INT: case CONST: - case CONST_DOUBLE: - case CONST_FIXED: - case CONST_VECTOR: + CASE_CONST_ANY: case CC0: case PC: case REG: @@ -2223,11 +2199,8 @@ side_effects_p (const_rtx x) { case LABEL_REF: case SYMBOL_REF: - case CONST_INT: case CONST: - case CONST_DOUBLE: - case CONST_FIXED: - case CONST_VECTOR: + CASE_CONST_ANY: case CC0: case PC: case REG: @@ -2312,10 +2285,7 @@ may_trap_p_1 (const_rtx x, unsigned flags) switch (code) { /* Handle these cases quickly. */ - case CONST_INT: - case CONST_DOUBLE: - case CONST_FIXED: - case CONST_VECTOR: + CASE_CONST_ANY: case SYMBOL_REF: case LABEL_REF: case CONST: @@ -2514,10 +2484,7 @@ inequality_comparisons_p (const_rtx x) case SCRATCH: case PC: case CC0: - case CONST_INT: - case CONST_DOUBLE: - case CONST_FIXED: - case CONST_VECTOR: + CASE_CONST_ANY: case CONST: case LABEL_REF: case SYMBOL_REF: @@ -2760,10 +2727,7 @@ computed_jump_p_1 (const_rtx x) return 0; case CONST: - case CONST_INT: - case CONST_DOUBLE: - case CONST_FIXED: - case CONST_VECTOR: + CASE_CONST_ANY: case SYMBOL_REF: case REG: return 1; |