aboutsummaryrefslogtreecommitdiff
path: root/gcc/flow.c
AgeCommit message (Collapse)AuthorFilesLines
2000-09-26flow.c (flow_loop_pre_header_scan): Punt if loop enters from entry block.Michael Hayes1-4/+8
* flow.c (flow_loop_pre_header_scan): Punt if loop enters from entry block. From-SVN: r36644
2000-09-18cppinit.c (cpp_init): Don't use ANSI prototypes.Mark Mitchell1-2/+2
* cppinit.c (cpp_init): Don't use ANSI prototypes. * flow.c (flow_dump_loop): Likewise. (flow_loops_dump): Likewise. From-SVN: r36480
2000-09-12Don't try to make autoincs with the stack pointerBernd Schmidt1-0/+1
From-SVN: r36370
2000-09-11flow.c (split_block): Fix update of registers live at end of split block.Michael Hayes1-4/+1
* flow.c (split_block): Fix update of registers live at end of split block. From-SVN: r36343
2000-09-11basic-block.h (LOOP_TREE, [...]): New.Michael Hayes1-54/+156
2000-09-12 Michael Hayes <mhayes@cygnus.com> * basic-block.h (LOOP_TREE, LOOP_PRE_HEADER, LOOP_EDGES): New. (LOOP_EXITS_DOMS, LOOP_ALL): Likewise. (flow_loops_update): New prototype. (flow_loops_find): Add flags to prototype. (struct loop): Add `pre_header_root' and `pre_header_trace' fields. * flow.c (flow_loop_pre_header_scan): New. (flow_loop_dump): Dump pre-header root and trace and exit dominators. (flow_loop_free): Free pre-header root and trace and exit dominators. (flow_loops_find): New argument flags. (flow_loops_update): New function. * toplev.c (rest_of_compilation): Add flag argument to flow_loops_find. From-SVN: r36333
2000-09-11basic-block.h (split_block, [...]): New prototypes.Michael Hayes1-0/+118
* basic-block.h (split_block, update_bb_for_insn): New prototypes. * flow.c (split_block, update_bb_for_insn): New functions. From-SVN: r36332
2000-09-06* flow.c (insn_dead_p): Detect dead memory stores with auto increments.Herman A.J. ten Brugge1-1/+14
From-SVN: r36220
2000-09-01flow.c (init_propagate_block_info): Don't mark frame dead at end of function ↵Richard Kenner1-0/+3
if returns wiht stack pointer depressed. * flow.c (init_propagate_block_info): Don't mark frame dead at end of function if returns wiht stack pointer depressed. From-SVN: r36099
2000-08-25flow.c (dump_edge_info): Use ARRAY_SIZE.Greg McGary1-1/+1
* flow.c (dump_edge_info): Use ARRAY_SIZE. * config/alpha/alpha.c (alpha_expand_block_move): Likewise. From-SVN: r35990
2000-08-25basic-block.h (struct loop): Rename `exits' field to `exit_edges'.Michael Hayes1-29/+99
* basic-block.h (struct loop): Rename `exits' field to `exit_edges'. Add `entry_edges' and `num_entries' fields. * flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find. (flow_loop_entry_edges_find): Add. (flow_edge_list_print): Rename from flow_exits_print. (flow_loops_find): Call flow_loop_entry_edges_find. (flow_loop_dump): Dump entry_edges list. (flow_loops_free): Free entry_edges. From-SVN: r35980
2000-08-25loop.c (loop_dump_aux, debug_loop): New functions.Michael Hayes1-30/+44
* loop.c (loop_dump_aux, debug_loop): New functions. (LOOP_BLOCK_NUM_1, LOOP_BLOCK_NUM, LOOP_INSN_UID): New macros. * flow.c (flow_loops_dump): Add callback parameter. (flow_loop_dump): Add callback parameter and call it. Move loop note debugging code to loop_dump_aux. * basic-block.h (flow_loop_dump): Add callback parameter (flow_loops_dump): Likewise. * toplev.c (rest_of_compilation): Add NULL callback function pointer to call to flow_loops_dump. From-SVN: r35979
2000-08-24optabs.c (init_optabs): Initialize fixtab...Greg McGary1-1/+1
* optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab, and extendtab within their proper array boundaries. * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds for the entire array. * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE. * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise. * config/avr/avr.c (order_regs_for_local_alloc): Likewise. * config/fr30/fr30.c (fr30_print_operand): Likewise. * config/i386/dgux.c (output_options): Likewise. * config/i386/dgux.h (ASM_FILE_START): Likewise. * config/m88k/m88k.c (output_options): Likewise. * config/m88k/m88k.h (ASM_FILE_START): Likewise. * config/mcore/mcore.c (mcore_output_inline_const_forced, layout_mcore_frame, handle_structs_in_regs): Likewise. * config/mips/mips.c (output_block_move): Likewise. * config/rs6000/rs6000.c (rs6000_override_options, rs6000_file_start): Likewise. * config/sparc/sparc.c (sparc_add_gc_roots): Likewise. * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise. * fixinc/fixtests.c (TEST_TABLE_CT): Likewise. * builtins.c (expand_builtin_setjmp): Likewise. * expr.c (safe_from_p): Likewise. * flow.c (life_analysis): Likewise. * fold-const.c (size_int_type_wide): Likewise. * gcc.c (translate_options, init_spec, set_spec, main): Likewise. * genattrtab.c (make_length_attrs): Likewise. * genopinit.c (gen_insn): Likewise. * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise. * global.c (global_alloc): Likewise. * local-alloc.c (find_free_reg): Likewise. * mips-tdump.c (print_symbol): Likewise. * mips-tfile.c (parse_def, parse_input): Likewise. * reload1.c (NUM_ELIMINABLE_REGS): Likewise. * stmt.c (expand_nl_goto_receiver): Likewise. * stor-layout.c (set_sizetype): Likewise. * varasm.c (decode_reg_name): Likewise. * toplev.c (decode_f_option, decode_W_option, set_target_switch, print_switch_values): Likewise. (NUM_ELEM): Remove macro. (display_help, main): s/NUM_ELEM/ARRAY_SIZE/ From-SVN: r35949
2000-08-22* flow.c (tidy_fallthru_edge): Update b->end properly.Richard Henderson1-1/+3
From-SVN: r35879
2000-08-21flow.c (calculate_global_regs_live): Mark frame pointer live everywhere ↵Richard Henderson1-0/+6
before reload. * flow.c (calculate_global_regs_live): Mark frame pointer live everywhere before reload. From-SVN: r35862
2000-08-21flow.c (init_propagate_block_info): Handle SUBREG in a jump condition ↵Richard Earnshaw1-2/+8
expression. * flow.c (init_propagate_block_info): Handle SUBREG in a jump condition expression. From-SVN: r35835
2000-08-20* flow.c (merge_blocks_nomove): Don't seek back past the bb note.Richard Henderson1-1/+3
From-SVN: r35827
2000-08-15* flow.c (mark_used_reg): Set reg_cond_reg appropriately.Richard Henderson1-5/+8
From-SVN: r35727
2000-08-14flow.c (attempt_auto_inc): Remove unused variable `bb'.Geoff Keating1-2/+1
* flow.c (attempt_auto_inc): Remove unused variable `bb'. (attempt_auto_inc): Suppress parentheses warning. * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'. * loop.c (load_mems): Remove `u' suffix in two places. * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from hex constants. * config/rs6000/rs6000.h: Likewise. * config/rs6000/sol-c0.c: Prototype some functions. Remove the __eabi dummy routine. * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused variable `buf_ptr'. From-SVN: r35670
2000-08-11* flow.c: Fix formatting.Kazu Hirata1-370/+378
From-SVN: r35631
2000-08-11flow.c (merge_blocks_nomove): Be more careful about locating the beginning ↵Richard Henderson1-3/+3
of block A. * flow.c (merge_blocks_nomove): Be more careful about locating the beginning of block A. From-SVN: r35623
2000-08-08flow.c (life_analysis): Only turn off PROP_LOG_LINKS and PROP_AUTOINC at -O0.Richard Henderson1-6/+7
* flow.c (life_analysis): Only turn off PROP_LOG_LINKS and PROP_AUTOINC at -O0. Don't collect alias info at -O0. (init_propagate_block_info): Don't kill memory stores at -O0. (mark_set_1, mark_used_regs): Likewise. From-SVN: r35571
2000-08-08tm.texi (LOCAL_REGNO): Document.Richard Henderson1-8/+12
* tm.texi (LOCAL_REGNO): Document. * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default. (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers. * reload1.c (reload): Likewise when considering nonlocal labels. * config/ia64/ia64.h (LOCAL_REGNO): New. * config/sparc/sparc.h (LOCAL_REGNO): New. From-SVN: r35564
2000-08-07* flow.c: Fix a comment typo.Kazu Hirata1-2/+2
From-SVN: r35542
2000-08-04alias.c (mark_constant_function): Use INSN_P.Rodney Brown1-6/+6
* alias.c (mark_constant_function): Use INSN_P. (init_alias_analysis): Likewise. * combine.c (combine_instructions): Use INSN_P. (can_combine_p): Likewise. (try_combine): Likewise. (distribute_notes): Likewise. (distribute_links): Likewise. * cse.c (cse_around_loop): Use INSN_P. (invalidate_skipped_block): Likewise. (cse_set_around_loop): Likewise. (cse_end_of_basic_block): Likewise. (delete_trivially_dead_insns): Likewise. * emit-rtl.c (unshare_all_rtl_again): Use INSN_P. (unshare_all_rtl_1): Likewise. (next_cc0_user): Likewise. (try_split make_insn_raw): Likewise. (remove_unnecessary_notes): Likewise. * final.c (shorten_branches): Use INSN_P. (leaf_renumber_regs): Likewise. (leaf_renumber_regs_insn): Likewise. * flow.c (find_label_refs): Use INSN_P. (verify_wide_reg): Likewise. (notice_stack_pointer_modification): Likewise. (count_or_remove_death_notes): Likewise. (verify_flow_info): Likewise. (clear_log_links): Likewise. * function.c (fixup_var_refs_insns): Use INSN_P. (compute_insns_for_mem): Likewise. * gcse.c (alloc_gcse_mem): Use INSN_P. (compute_sets): Likewise. (compute_hash_table): Likewise. (classic_gcse): Likewise. (cprop): Likewise. (insert_insn_end_bb): Likewise. (delete_null_pointer_checks_1): Likewise. * global.c (expand_preferences): Use INSN_P. (build_insn_chain): Likewise. * graph.c (node_data): Use INSN_P. * haifa-sched.c (priority): Use INSN_P. (rm_line_notes): Likewise. (rm_other_notes): Likewise. (find_insn_reg_weight): Likewise. (init_target_units): Likewise. (schedule_block): Likewise. (compute_block_forward_dependences): Likewise. (debug_dependencies): Likewise. (set_priorities): Likewise. * integrate.c (function_cannot_inline_p): Use INSN_P. (save_parm_insns): Likewise. (copy_insn_list): Likewise. * jump.c (mark_all_labels): Use INSN_P. (never_reached_warning): Likewise. * lcm.c (optimize_mode_switching): Use INSN_P. * local-alloc.c (validate_equiv_mem): Use INSN_P. (memref_used_between_p): Likewise. (update_equiv_regs): Likewise. (block_alloc): Likewise. (no_conflict_p): Likewise. * loop.c (scan_loop): Use INSN_P. (find_and_verify_loops): Likewise. (count_loop_regs_set): Likewise. (loop_reg_used_before_p): Likewise. (strength_reduce): Likewise. (recombine_givs): Likewise. (check_dbra_loop): Likewise. (load_mems): Likewise. (try_copy_prop): Likewise. * print-rtl.c (print_rtx): Use INSN_P. * recog.c (find_single_use): Use INSN_P. * reg-stack.c (stack_regs_mentioned): Use INSN_P. (next_flags_user): Likewise. (swap_rtx_condition): Likewise. * regmove.c (mark_flags_life_zones): Use INSN_P. (optimize_reg_copy_1): Likewise. (optimize_reg_copy_2): Likewise. (optimize_reg_copy_3): Likewise. (reg_is_remote_constant_p): Likewise. (fixup_match_2): Likewise. (regmove_optimize): Likewise. (fixup_match_1): Likewise. * regrename.c (build_def_use): Use INSN_P. (replace_reg_in_block): Likewise. (consider_use): Likewise. * reload.c (find_equiv_reg): Use INSN_P. * reload1.c (reload): Use INSN_P. (maybe_fix_stack_asms): Likewise. (calculate_needs_all_insns): Likewise. (reload_as_needed): Likewise. (emit_output_reload_insns): Likewise. (delete_address_reloads_1): Likewise. (reload_cse_regs_1): Likewise. (reload_combine): Likewise. (reload_cse_move2add): Likewise. * reorg.c (redundant_insn): Use INSN_P. (dbr_schedule): Likewise. * resource.c (find_dead_or_set_registers): Use INSN_P. (mark_target_live_regs): Likewise. * rtlanal.c (reg_used_between_p): Use INSN_P. (reg_referenced_between_p): Likewise. (reg_set_between_p): Likewise. (reg_set_p): Likewise. (single_set): Likewise. (multiple_sets): Likewise. (find_last_value): Likewise. (reg_set_last): Likewise. (find_reg_note): Likewise. (find_regno_note): Likewise. * sibcall.c (sequence_uses_addressof): Use INSN_P. * simplify-rtx.c (cselib_process_insn): Use INSN_P. * ssa.c (find_evaluations): Use INSN_P. (rename_block): Likewise. (rename_equivalent_regs): Likewise. * unroll.c (loop_find_equiv_value): Use INSN_P. (set_dominates_use): Likewise. * varasm.c (mark_constant_pool): Use INSN_P. (mark_constants): Likewise. * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P. (alphaev4_next_group): Likewise. (alphaev5_next_group): Likewise. * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P. (c4x_rptb_rpts_p): Likewise. * config/mips/mips.c (mips16_optimize_gp): Use INSN_P. * config/rs6000/rs6000.c (uses_TOC): Use INSN_P. (rs6000_adjust_priority): Likewise. * config/sh/sh.c (sh_loop_align): Use INSN_P. (machine_dependent_reorg): Likewise. (split_branches): Likewise. * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P. From-SVN: r35494
2000-08-03flow.c (find_auto_inc): Verify that we've got a REG before peeking at its regno.Jeffrey A Law1-3/+3
* flow.c (find_auto_inc): Verify that we've got a REG before peeking at its regno. Fail, don't abort if we can't find the increment of the desired register. From-SVN: r35443
2000-08-02Makefile.in (OBJS): Added dce.o.Jeffrey Oldham1-5/+170
* Makefile.in (OBJS): Added dce.o. (ssa.o): Updated target to include ssa.h. (flow.o): Likewise. (toplev.o): Likewise. (dce.o): Created target. * basic-block.h: Added comments. (INVALID_BLOCK): Added definition. (connect_infinite_loops_to_exit): Added declaration. Moved SSA declarations to ssa.h. * flow.c: Added inclusion of ssa.h. (struct depth_first_search_dsS, depth_first_search_ds): Added definitions. (compute_immediate_postdominators): Added definition. (connect_infinite_loops_to_exit): Likewise. (flow_dfs_compute_reverse_init): Likewise. (flow_dfs_compute_reverse_add_bb): Likewise. (flow_dfs_compute_reverse_execute): Likewise. (flow_dfs_compute_reverse_finish): Likewise. * rtl.h (rtx/in_struct): Added use to determine insn necessity. (LABEL_P): Added definition. (JUMP_P): Likewise. (NOTE_P): Likewise. (BARRIER_P): Likewise. (JUMP_TABLE_DATA_P): Likewise. (INSN_DEAD_CODE_P): Likewise. * ssa.c: Replaced inclusions with ssa.h inclusion. (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h. (rename_registers): Removed unnecessary variables. * ssa.h: Created by moving declarations from ssa.c and basic-block.h. * timevar.def: Defined TV_DEAD_CODE_ELIM. * toplev.c: Added ssa.h inclusion. (dump_file_index): Added DFI_dce. (dump_file): Added "dce" entry. Defined flag_ssa. (f_options): Added dce entry. * invoke.texi: Document -fdce. Emphasize experimental status of -fssa. Co-Authored-By: Mark Mitchell <mark@codesourcery.com> From-SVN: r35419
2000-08-02rtl.h (enum reg_note): Add REG_MAYBE_DEAD.Geoff Keating1-1/+2
* rtl.h (enum reg_note): Add REG_MAYBE_DEAD. * rtl.c (reg_note_name): Add REG_MAYBE_DEAD. * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue insns if they have a REG_MAYBE_DEAD note attached. * config/rs6000/rs6000.c (rs6000_maybe_dead): New function. (rs6000_emit_load_toc_table): TOC loads may go dead. From-SVN: r35414
2000-08-01* flow.c (clear_log_links): Fix typo.Mark Mitchell1-1/+1
From-SVN: r35406
2000-08-01flow.c (clear_log_links): Nuke global_live_at_start and global_live_at_end ↵Geoff Keating1-1/+16
data... * flow.c (clear_log_links): Nuke global_live_at_start and global_live_at_end data, since if the log_links stuff is invalid so is global_live_at_*. From-SVN: r35396
2000-07-31Makefile.in (ssa.o): Updated header files in dependences.Jeffrey D. Oldham1-1/+15
* Makefile.in (ssa.o): Updated header files in dependences. * basic-block.h: Added compute_immediate_postdominators declaration. * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added definition. * flow.c (compute_immediate_dominators): Updated comment. (compute_immediate_postdominators): Added definition. * rtl.h (HARD_REGISTER_P): Added definition. * ssa.c: Include additional header files. (assert): Added definition. (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to include select hard registers. (ssa_rename_to_insert): Likewise. (ssa_rename_from_initialize): Likewise. (ssa_rename_from_lookup): Likewise. (original_register): Likewise. (ssa_rename_from_insert): Added to reimplement ssa_rename_from to include select hard reigsters. (ssa_rename_from_traverse): Likewise. (ssa_rename_from_free): Likewise. (ssa_rename_from_print): Likewise. (ssa_rename_from_print_1): Likewise. (ssa_rename_from_hash_function): Likewise. (ssa_rename_from_equal): Likewise. (ssa_rename_from_delete): Likewise. (simplify_to_immediate_dominators): Removed in favor of flow.c:compute_immediate_dominators. (find_evaluations_1): Modified to work with hard registers. (insert_phi_node): Likewise. (insert_phi_nodes): Likewise. (struct rename_set_data): Updated prev_reg comment. (create_delayed_rename): Modified to work with hard registers. (RENAME_NO_RTX): Updated comment. (apply_delayed_renames): Modified to work with hard registers. (rename_insn_1): Likewise and added handling of CLOBBER rtls. (rename_block): Updated to use revised ssa_rename_to interface. (rename_registers): Updated to use revised ssa_rename_to and ssa_rename_from interface. (convert_to_ssa): Revised to use compute_immediate_dominators and deal with hard registers. (make_regs_equivalent_over_bad_edges): Modified to work with hard registers. Added check for illegal unification of hard register. (make_equivalent_phi_alternatives_equivalent): Modified to work with hard registers. (compute_conservative_reg_partition): Likewise. (coalesce_if_unconflicting): Modified to work with hard registers and check for conflicting hard registers. (mark_phi_and_copy_regs): Revised loop to work only on pseudo registers. (rename_equivalent_regs_in_insn): Modified to work with hard registers. (record_canonical_element_1): Added definition. (check_hard_regs_in_partition): Added definition. (convert_from_ssa): Added data structure deallocation and check for illegal hard register unification. (conflict_hard_regs_p): Added definition. * toplev.c (rest_of_compilation): Added comment. From-SVN: r35384
2000-07-30* flow.c (init_propagate_block_info): Use pc_set.Richard Henderson1-3/+4
From-SVN: r35353
2000-07-30basic-block.h (struct loops): New field rc_order.Michael Hayes1-12/+35
* basic-block.h (struct loops): New field rc_order. * flow.c (flow_loops_cfg_dump): Dump rc_order if computed. (flow_loops_free): Free rc_order. (flow_depth_first_order_compute): New parameter rc_order. (flow_loops_find): Allocate rc_order and swap usage with dfs_order. From-SVN: r35342
2000-07-28cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.Richard Henderson1-158/+214
* cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY. (cse_insn): Likewise. (addr_affects_sp_p): Likewise. * expr.c (move_by_pieces): Likewise. (clear_by_pieces): Likewise. * gcse.c (oprs_unchanged_p): Likewise. * haifa-sched.c (sched_analyze_2): Likewise. * recog.c (offsettable_address_p): Likewise. * regclass.c (record_address_regs): Likewise. * reload.c (find_reusable_reload): Likewise. (push_reload): Likewise. (operands_match_p): Likewise. (decompose): Likewise. (find_reloads_address_1): Likewise. (find_inc_amount): Likewise. * reload1.c (elimination_effects): Likewise. * resource.c (mark_set_resources): Likewise. * flow.c (attempt_auto_inc): New function; mostly broken out of find_auto_inc. (find_auto_inc): Split into two functions and enhanced to generate POST_MODIFY. * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment. * rtl.h (count_all_occurrences): Declare. (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not defined. * rtlanal.c (count_all_occurrences): New function. * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP, HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document. * config/ia64/ia64-protos.h (destination_operand): Declare. * config/ia64/ia64.c (destination_operand): New function. (ia64_print_operand): Handle POST_MODIFY. (rtx_needs_barrier): Likewise. * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1. (HAVE_POST_MODIFY_REG): Define to 1. (MAX_REGS_PER_ADDRESS): Change to 2. (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too. (LEGITIMATE_ADDRESS_REG): New helper macro. (LEGITIMATE_ADDRESS_DISP): Likewise. (PREDICATE_CODES): Add entry for destination_operand. * config/ia64/ia64.md (all mov patterns): Use destination_operand predicate for operand 0. From-SVN: r35321
2000-07-27Put phi nodes after NOTE_INSN_BASIC_BLOCK.Mark Mitchell1-11/+5
* rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro. * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P. (get_prev_bb_note): Likewise. (remove_scope_notes): Likewise. * flow.c (commit_one_edge_insertion): Likewise. (merge_blocks_nomove): Likewise. (verify_flow_info): Likewise. * gcse.c (insert_insn_end_bb): Likewise. * reg-stack.c (emit_swap_insn): Likewise. * ssa.c (first_insn_after_basic_block_note): New function. (insert_phi_node): Use it. (rename_block): Likewise. (eliminate_phi): Likewise. (make_regs_equivalent_over_bad_edges): Likewise. (make_equivalent_phi_alternatives_equivalent): Likewise. (for_each_successor_phi): Likewise. (convert_from_ssa): Modify phi-node deletion algorithm. From-SVN: r35296
2000-07-22collect2.c (main): Typo fixed.Jeffrey Oldham1-10/+11
2000-07-22 Jeffrey Oldham <oldham@codesourcery.com> * collect2.c (main): Typo fixed. * diagnostic.c: Typo fixed. * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed. * eh-common.h: Typo fixed. * emit-rtl.c (start_sequence): Typo fixed. * flow.c (find_label_refs): Typo fixed. (calculate_global_regs_live): Typo fixed. (mark_regno_cond_dead): Typo fixed. (create_edge_list): Typos fixed. (verify_edge_list): Typo fixed. * ggc-common.c (ggc_mark_rtx_children): Typo fixed. * loop.c (strength_reduce): Typo in function name fixed. * rtl.h: Added comments. Typo in function name fixed. * rtlanal.c: Typo in function name fixed. (insn_dependant_p): Rename to ... (insn_dependent_p): ... this. (computed_jumo_p): Typo fixed. From-SVN: r35194
2000-07-20flow.c (verify_flow_info): Revamp code to verify that the head and end of ↵Jeffrey A Law1-14/+19
each basic block are in the insn... * flow.c (verify_flow_info): Revamp code to verify that the head and end of each basic block are in the insn chain. From-SVN: r35160
2000-07-17flow.c (libcall_dead_p): Use single_set to verify the insn has only one set ↵Stephane Carrez1-13/+12
and get for analysis. * flow.c (libcall_dead_p): Use single_set to verify the insn has only one set and get for analysis. (propagate_one_insn): Don't pass the PATTERN of the insn. From-SVN: r35091
2000-06-29* flow.c (flow_depth_first_order_compute): Fix algorithm.Michael Hayes1-38/+44
From-SVN: r34774
2000-06-19* Take REG_INC notes into account.J"orn Rennecke1-0/+10
From-SVN: r34603
2000-06-13flow.c (insn_dead_p): Keep sets to PIC_OFFSET_TABLE_REGNUM alive before reload.Richard Henderson1-0/+10
* flow.c (insn_dead_p): Keep sets to PIC_OFFSET_TABLE_REGNUM alive before reload. * haifa-sched.c (struct deps): Add in_post_call_group_p. (add_dependence): Handle notes between SCHED_GROUP_P insns. (remove_dependence): Always define. (set_sched_group_p): New. (sched_analyze_2): Use it. (sched_analyze_insn): Don't special-case naked uses. Look for and extend in_post_call_group_p. (sched_analyze): Clear stale SCHED_GROUP_P. Set in_post_call_group_p. (init_deps): Clear in_post_call_group_p. From-SVN: r34529
2000-06-13combine.c (subst): Use CLASS_CANNOT_CHANGE_MODE and ↵Richard Henderson1-6/+10
CLASS_CANNOT_CHANGE_MODE_P instead of... * combine.c (subst): Use CLASS_CANNOT_CHANGE_MODE and CLASS_CANNOT_CHANGE_MODE_P instead of CLASS_CANNOT_CHANGE_SIZE and hard-coded tests. (simplify_set): Likewise. (gen_lowpart_for_combine): Likewise. * emit-rtl.c (gen_lowpart_common): Likewise. * global.c (find_reg): Likewise. * local-alloc.c (find_free_reg): Likewise. * recog.c (register_operand): Likewise. * regclass.c (init_reg_sets_1): Likewise. (record_operand_costs, regclass): Likewise. * reload.c (push_reload): Likewise. * reload1.c (choose_reload_regs): Likewise. * flow.c (mark_used_regs): Conditionally set REG_CHANGES_MODE. * local-alloc.c (struct qty): Rename changes_size to changes_mode. Update all references. * regs.h (struct reg_info_def): Likewise. (REG_CHANGES_MODE): Rename from REG_CHANGES_SIZE. * tm.texi (CLASS_CANNOT_CHANGE_MODE): Document. (CLASS_CANNOT_CHANGE_MODE_P): Likewise. * config/alpha/alpha.h (CLASS_CANNOT_CHANGE_MODE): Rename. (CLASS_CANNOT_CHANGE_MODE_P): New. * config/mips/mips.h: Likewise. * config/pa/pa32-regs.h: Likewise. * config/pa/pa64-regs.h: Likewise. * config/rs6000/rs6000.h: Likewise. * config/sh/sh.h: Likewise. * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE): New. (CLASS_CANNOT_CHANGE_MODE_P): New. * config/avr/avr.h (CLASS_CANNOT_CHANGE_SIZE): Remove dead code. * config/d30v/d30v.h: Likewise. From-SVN: r34526
2000-06-12flow.c (mark_used_regs): Revert last change.Richard Earnshaw1-6/+9
* flow.c (mark_used_regs): Revert last change. (life_analysis): Remove PROP_AUTOINC if running after reload. (propagate_one_insn): PROP_AUTOINC is always off after reload. From-SVN: r34499
2000-06-11flow.c (mark_used_regs): Don't call find_auto_inc after reload has run.Richard Earnshaw1-2/+2
* flow.c (mark_used_regs): Don't call find_auto_inc after reload has run. From-SVN: r34492
2000-05-31flow.c (merge_blocks_nomove): Remove a barrier not following a jump as well.Richard Henderson1-0/+2
* flow.c (merge_blocks_nomove): Remove a barrier not following a jump as well. From-SVN: r34315
2000-05-31flow.c (propagate_block): Move initialization of mem_set_list ...Richard Henderson1-21/+27
* flow.c (propagate_block): Move initialization of mem_set_list ... (init_propagate_block_info): ... here. Also track blocks with no successors; don't scan insns if ! PROP_SCAN_DEAD_CODE. From-SVN: r34310
2000-05-31flow.c (propagate_block): If block has no successors, stores to frame are ↵Richard Kenner1-0/+20
dead if not used. * flow.c (propagate_block): If block has no successors, stores to frame are dead if not used. From-SVN: r34296
2000-05-29flow.c (mark_used_reg): If a register is unconditionally live, remove any ↵Richard Earnshaw1-0/+18
conditional death information. * flow.c (mark_used_reg): If a register is unconditionally live, remove any conditional death information. From-SVN: r34259
2000-05-26flow.c (find_label_refs): New function.Richard Earnshaw1-5/+55
* flow.c (find_label_refs): New function. (find_basic_blocks_1): Call it for each alternative of a call placeholder. From-SVN: r34193
2000-05-25bb-reorder.c (reorder_block_def): Reorder elements for size.Richard Henderson1-0/+40
* bb-reorder.c (reorder_block_def): Reorder elements for size. Remove add_jump; add next; replace flags with visited. (rbd_init): Remove. (REORDER_BLOCK_HEAD, REORDER_BLOCK_VISITED): Remove. (REORDER_BLOCK_FLAGS, REORDER_BLOCK_INDEX): Remove. (REORDER_BLOCK_ADD_JUMP, REORDER_BLOCK_EFF_HEAD): Remove. (REORDER_BLOCK_EFF_END, REORDER_BLOCK_SCOPE): Remove. (RBI): New. (reorder_index, reorder_last_visited): Remove. (skip_insns_after_block): Rewrite to use a switch. (get_common_dest): Remove. (chain_reorder_blocks): Remove. (record_effective_endpoints): Split out from reorder_basic_blocks. (make_reorder_chain): Likewise. Loop until all blocks are placed. (make_reorder_chain_1): Renamed from old make_reorder_chain. Only construct the reorder chain, do not move insns. Try harder to tail recurse. (label_for_bb, emit_jump_to_block_after): New. (fixup_reorder_chain): Use them. Do bulk block movement. Examine and adjust the jump insns appropriately. Fixup basic_block_info. (verify_insn_chain): Always define. (relate_bbs_with_scopes): Call xmalloc, not xcalloc. Fix thinko in allocation size. (make_new_scope): Don't write zeros to calloc'd space. (build_scope_forest): Rely on xrealloc to DTRT. (reorder_basic_blocks): Don't build loop nest. Don't fail if profile_arc_flag. Streamline EH test. * flow.c (redirect_edge_succ, redirect_edge_pred): New. * basic-block.h: Declare them. From-SVN: r34186
2000-05-25* flow.c (mark_set_1): Don't record conditionally dead memory.Richard Henderson1-0/+2
From-SVN: r34176