1. 27 Sep, 2003 1 commit
  2. 06 Jul, 2003 1 commit
    • jump.c: Convert prototypes to ISO C90. · 0c20a65f
      	* jump.c: Convert prototypes to ISO C90.
      	* langhooks-def.h: Likewise.  Add extern to prototypes.
      	* langhooks.c: Likewise.
      	* langhooks.h: Likewise.
      	* lcm.c: Likewise.
      	* local-alloc.c: Likewise.
      	* loop-init.c: Likewise.
      	* loop-unroll.c: Likewise.
      	* loop-unswitch.c: Likewise.
      	* loop.c: Likewise.
      	* loop.h: Likewise. Add extern to prototypes.
      	* machmode.h: Likewise.
      	* main.c: Likewise.
      	* mbchar.c: Likewise.
      	* mbchar.h: Likewise.
      	* mkdeps.c: Likewise.
      	* mkdeps.h: Likewise.
      	* optabs.c: Likewise.
      	* optabs.h: Likewise.
      	* output.h: Likewise.
      	* gccspec.c: Likwise.
      	* postreload.c: Likewise.
      	* prefix.c: Likewise.
      	* prefix.h: Likewise.
      	* print-rtl.c: Likewise.
      	* print-tree.c: Likewise.
      	* profile.c: Likewise.
      	* read-rtl.c: Likewise.
      	* real.c: Likewise.
      	* real.h: Likewise.
      	* recog.c: Likewise.
      	* recog.h: Likewise.
      	* reg-stack.c: Likewise.
      	* regclass.c: Likewise.
      	* regmove.c: Likewise.
      	* regrename.c: Likewise.
      	* regs.h: Likewise.
      	* reload.c: Likewise.
      	* reload.h: Likewise.
      	* reload1.c: Likewise.
      	* reorg.c: Likewise.
      	* resource.c: Likewise.
      	* resource.h: Likewise.
      	* rtl-error.c: Likewise.
      	* rtl.c: Likewise.
      	* rtl.h: Likewise.
      	* rtlanal.c: Likewise.
      
      From-SVN: r68998
      Andreas Jaeger committed
  3. 16 Jun, 2003 1 commit
  4. 07 Apr, 2003 1 commit
  5. 13 Dec, 2002 1 commit
    • c-decl.c: Fix a comment typo. · 09da1532
      	* c-decl.c: Fix a comment typo.
      	* cfg.c: Likewise.
      	* cfgcleanup.c: Likewise.
      	* cfglayout.c: Likewise.
      	* cfgrtl.c: Likewise.
      	* c-typeck.c: Likewise.
      	* dominance.c: Likewise.
      	* dwarf2asm.c: Likewise.
      	* dwarfout.c: Likewise.
      	* expmed.c: Likewise.
      	* expr.c: Likewise.
      	* final.c: Likewise.
      	* flow.c: Likewise.
      	* function.c: Likewise.
      	* gcc.c: Likewise.
      	* genautomata.c: Likewise.
      	* integrate.c: Likewise.
      	* loop.c: Likewise.
      	* loop.h: Likewise.
      	* output.h: Likewise.
      	* profile.c: Likewise.
      	* ra.h: Likewise.
      	* reload1.c: Likewise.
      	* reload.c: Likewise.
      	* sched-rgn.c: Likewise.
      	* stmt.c: Likewise.
      	* tree.h: Likewise.
      	* vmsdbgout.c: Likewise.
      
      From-SVN: r60085
      Kazu Hirata committed
  6. 22 Sep, 2002 1 commit
    • dbxout.c: Follow spelling conventions. · cc2902df
      	* dbxout.c: Follow spelling conventions.
      	* defaults.h: Likewise.
      	* df.c: Likewise.
      	* diagnostic.h: Likewise.
      	* doloop.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* dwarfout.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* except.c: Likewise.
      	* explow.c: Likewise.
      	* expmed.c: Likewise.
      	* expr.c: Likewise.
      	* expr.h: Likewise.
      	* flags.h: Likewise.
      	* flow.c: Likewise.
      	* fold-const.c: Likewise.
      	* function.c: Likewise.
      	* function.h: Likewise.
      	* gcc.c: Likewise.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	* gcse.c: Likewise.
      	* genattrtab.c: Likewise.
      	* genconfig.c: Likewise.
      	* genrecog.c: Likewise.
      	* ggc-page.c: Likewise.
      	* ggc.h: Likewise.
      	* global.c: Likewise.
      	* gthr-win32.h: Likewise.
      	* integrate.c: Likewise.
      	* jump.c: Likewise.
      	* langhooks.c: Likewise.
      	* langhooks.h: Likewise.
      	* line-map.h: Likewise.
      	* local-alloc.c: Likewise.
      	* longlong.h: Likewise.
      	* loop.c: Likewise.
      	* loop.h: Likewise.
      
      From-SVN: r57406
      Kazu Hirata committed
  7. 22 Jul, 2002 1 commit
  8. 20 Jul, 2002 1 commit
  9. 30 May, 2002 1 commit
    • langhooks.c: Fix formatting. · e11e816e
      	* langhooks.c: Fix formatting.
      	* langhooks.h: Likewise.
      	* lcm.c: Likewise.
      	* libgcc2.c: Likewise.
      	* lists.c: Likewise.
      	* local-alloc.c: Likewise.
      	* loop.c: Likewise.
      	* loop.h: Likewise.
      
      From-SVN: r54070
      Kazu Hirata committed
  10. 16 May, 2002 1 commit
    • loop.h (struct loop_info): Add member has_prefetch. · 62e6ca55
      	* loop.h (struct loop_info): Add member has_prefetch.
      	* loop.c (PREFETCH_CONDITIONAL): Change default to 1.
      	(prescan_loop): Initialize has_prefetch.
      	(struct prefetch_info): Change prefetch_in_loop and
      	prefetch_before_loop from bit fields to ints.
      	(emit_prefetch_instructions): Several small fixes.
      	(check_dbra_loop): Don't reverse loop that uses prefetch.
      
      From-SVN: r53524
      Janis Johnson committed
  11. 03 Apr, 2002 1 commit
  12. 03 Jan, 2002 1 commit
  13. 13 Dec, 2001 1 commit
    • predict.c (estimate_probability): Reorganize opcode heuristics. · 0dd0e980
      	* predict.c (estimate_probability): Reorganize opcode heuristics.
      	* predict.def (PRED_OPCODE_POSITIVE, PRED_OPCODE_NONEQUAL,
      	PRED_FPOPCODE): New.
      
      	* i386.c (override_options): Recognize various CPU variants and set
      	SSE/MMX/3dNOW flags accordingly.
      	* i386.h (MASK_MMX_SET, MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET,
      	MASK_3DNOW_A_SET): New.
      	(MASK_ACCUMULATE_OUTGOING_ARGS_SET): New.
      	(MASK_NO_ACCUMULATE_OUTGOING_ARGS): Delete.
      	(MASK_*): Renumber.
      	(TARGET_FLAGS): Use new masks.
      	(CPP_CPU_SPECS): Recognize new CPU variants.
      	* invoke.texi (-mcpu): Update documentation.
      
      	* flags.h (flag_prefetch_loop_arrays): Declare.
      	* loop.h (LOOP_PREFETCH): Define new constant.
      	* loop.c (strength_reduce): Call emit_prefetch_instructions.
      	(MAX_PREFETCHES, PREFETCH_BLOCKS_BEFORE_LOOP_MAX,
      	PREFETCH_BLOCKS_BEFORE_LOOP_MIN, PREFETCH_BLOCKS_IN_LOOP_MIN): New
      	constants.
      	(check_store_data): New structure.
      	(check_store, emit_prefetch_instructions, rtx_equal_for_prefetch_p):
      	New functions.
      	* toplev.c: Include insn-flags.h.
      	(flag_prefetch_loop_arrays): New global variable.
      	(lang_independent_option): Add -fprefetch-loop-arrays.
      	(rest_of_compilation) Pass LOOP_PREFETCH when flag_prefetch_loop_arrays
              is set.
      	* Makefile.in (toplev.c): Depend on insn-flags.h.
      	* invoke.texi (-fprefetch-loop-arrays): Document.
      
      	* predict.c (estimate_probability): Distribute the loop exit
      	probability according to number of exit edges.
      
      	* cfgcleanup.c (insns_match_p): Break out from ...;
      	(flow_find_cross_jump): ... here;
      	(outgoing_edges_match): Add parameter MODE; attempt to match everything
      	except for tablejumps.
      	(try_crossjump_to_edge): Accept complex edges.
      	(try_crossjump_bb): Likewise.
      
      From-SVN: r47969
      Jan Hubicka committed
  14. 29 Oct, 2001 1 commit
  15. 28 Oct, 2001 1 commit
    • ChangeLog.0, [...]: Fix spelling errors. · ff7cc307
      	* ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
      	ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
      	c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
      	configure, configure.in, except.c, except.h, flow.c, function.c,
      	gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
      	predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
      	sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
      	unroll.c: Fix spelling errors.
      
      From-SVN: r46595
      Joseph Myers committed
  16. 09 Oct, 2001 1 commit
    • acconfig.h: Fix comment formatting. · 19eb1ad7
      	* acconfig.h: Fix comment formatting.
      	* c-dump.h: Likewise.
      	* c-tree.h: Likewise.
      	* conditions.h: Likewise.
      	* expr.h: Likewise.
      	* function.h: Likewise.
      	* gthr.h: Likewise.
      	* hwint.h: Likewise.
      	* integrate.h: Likewise.
      	* intl.h: Likewise.
      	* loop.h: Likewise.
      	* optabs.h: Likewise.
      
      From-SVN: r46131
      Kazu Hirata committed
  17. 22 Aug, 2001 1 commit
    • Makefile.in, [...]: replace "GNU CC" with "GCC". · 1322177d
      	* Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
      	bitmap.h, builtin-types.def, builtins.c, builtins.def,
      	c-aux-info.c, c-common.c, c-common.def, c-common.h,
      	c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
      	c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
      	c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
      	caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
      	conditions.h, config.gcc, configure.frag, configure.in,
      	conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
      	cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
      	dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
      	doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
      	dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
      	emit-rtl.c, errors.c, errors.h, except.c, except.h,
      	exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
      	fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
      	function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
      	gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
      	gencheck.c, gencodes.c, genconfig.c, genemit.c,
      	genextract.c, genflags.c, gengenrtl.c, genmultilib,
      	genopinit.c, genoutput.c, genpeep.c, genrecog.c,
      	gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
      	ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
      	graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
      	gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
      	gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
      	hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
      	integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
      	libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
      	machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
      	mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
      	mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
      	params.h, predict.c, predict.def, predict.h, prefix.c,
      	prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
      	read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
      	regclass.c, regmove.c, regrename.c, regs.h, reload.c,
      	reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
      	rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
      	sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
      	sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
      	ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
      	stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
      	tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
      	tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
      	unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
      	unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
      	xcoffout.h: replace "GNU CC" with "GCC".
      
      From-SVN: r45105
      Lars Brinkhoff committed
  18. 11 May, 2001 1 commit
    • loop.h (struct movables): Remove `num'. · 28680540
      	* loop.h (struct movables): Remove `num'.
      	* loop.c (scan_loop): Don't set it.  Use count_insns_in_loop.
      	Adjust call to strength_reduce.
      	(num_unmoved_movables): New function.
      	(move_movables): Don't set movables->num.
      	(strength_reduce): Compute the number of instructions in the loop
      	here, rather than in the caller.
      	(check_dbra_loop): Always clear reversible_mem_store if there
      	are any memory sets.
      	(loop_regs_scan): Don't count instructions here.
      	(count_insn_in_loop): New function.
      
      From-SVN: r41966
      Mark Mitchell committed
  19. 25 Jan, 2001 1 commit
    • loop.c (loop_call_insn_emit_before, [...]): New. · 86e21212
      	* loop.c (loop_call_insn_emit_before, loop_call_insn_hoist): New.
      	(loop_insn_emit_before): No longer static.
      	(move_movables): Replace emit_insn_after with loop_insn_emit_after.
      	(loop_givs_rescan, load_mems): Likewise.
      	(check_dbra_loop): Replace emit_insn_before with loop_insn_emit_before.
      	(maybe_eliminate_biv_1):
      	(move_movables): Replace emit_call_insn_before with
      	loop_call_insn_hoist.
      	* loop.h (loop_insn_emit_before): Add.
      	* unroll.c (copy_loop_body): Replace emit_insn_before with
      	loop_insn_emit_before.
      
      From-SVN: r39260
      Michael Hayes committed
  20. 12 Jan, 2001 2 commits
  21. 07 Jan, 2001 2 commits
    • hard-reg-set.h: Add multiple include guard. · 96a45535
      	* hard-reg-set.h: Add multiple include guard.
      	* basic-block.h (struct loop): Add `sink' field.
      	* loop.h: Include sbitmap.h, hard-reg-set.h, and basic-block.h.
      	(emit_iv_add_mult): Delete.
      	(loop_iv_add_mult_hoist, loop_iv_add_mult_sink): Define.
      	(loop_iv_add_mult_emit_before, loop_insn_sink): Define.
      	(unroll_loop): Remove end_insert_before argument.
      	* loop.c (loop_givs_rescan): Remove end_insert_before argument.
      	(maybe_eliminate_biv_1): Likewise.
      	(emit_iv_add_mult): Delete.
      	(gen_add_mult, loop_regs_update): New.
      	(loop_insn_emit_after, loop_insn_emit_before): New.
      	(loop_insn_sink, loop_insn_sink_or_swim): New.
      	(emit_iv_add_mult): Delete.
      	(scan_loop): Set loop->sink.
      	(loop_givs_reduce): Use loop_insn_sink and its ilk.
      	(loop_givs_rescan, strength_reduce, check_dbra_loop): Likewise.
      	(maybe_eliminate_biv_1): Likewise.
      	(maybe_eliminate_biv_1): Add basic block argument.
      	* unroll.c (unroll_loop): Remove end_insert_before argument.
      	(find_splittable_regs): Likewise.
      	(find_splittable_regs): Use loop_insn_sink and its ilk.
      	(find_splittable_givs, final_biv_value, final_giv_value): Likewise.
      
      From-SVN: r38766
      Michael Hayes committed
    • loop.h (loop_insn_hoist): New prototype. · 804a718a
      	* loop.h (loop_insn_hoist): New prototype.
      	* loop.c (loop_insn_hoist, loop_insn_emit_before): New.
      	(move_movables, loop_givs_rescan): Use loop_insn_hoist.
      	(check_dbra_loop, load_mems): Likewise.
      	* unroll.c (unroll_loop, find_splittable_regs): Likewise.
      	(find_splittable_givs): Likewise.
      
      From-SVN: r38765
      Michael Hayes committed
  22. 05 Jan, 2001 1 commit
    • loop.h (struct loop_reg): New. · f1d4ac80
      	* loop.h (struct loop_reg): New.
      	(struct loop_regs): Change to use array of `struct loop_reg'.
      	* loop.c: Replace assortment of varrays with single regs array.
      	(count_one_set): Delete may_not_move array argument
      	and use regs array instead.  All caller's changed.
      	(count_loop_regs_set): Delete may_not_move and single_usage
      	arguments and use regs array instead.  All caller's changed.
      	(find_single_use_in_loop): Replace usage array argument with pointer
      	to regs structure.  All caller's changed.
      	(loop_optimize): Delete `moved_once' array.
      
      From-SVN: r38700
      Michael Hayes committed
  23. 01 Jan, 2001 5 commits
    • loop.h (struct iv): New. · 14be28e5
      	* loop.h (struct iv): New.
      	(REG_IV_TYPE, REG_IV_CLASS, REG_INFO): Modify to use 'struct iv'.
      	(struct loop_ivs): Replace 'reg_iv_type', 'reg_iv_info',
      	'reg_biv_class' fields with 'regs' and 'n_regs'.
      	(struct ivs): Rename 'loop_iv_list' field to 'list'.
      	* loop.c (loop_bivs_find, strength_reduce): Use ivs->regs array.
      	* unroll.c (loop_iterations): Check array bounds with ivs->n_regs.
      
      From-SVN: r38582
      Michael Hayes committed
    • loop.h (REG_IV_CLASS): New accessor macro. · 8b634749
      	* loop.h (REG_IV_CLASS): New accessor macro.
      	* loop.c (REG_IV_CLASS): Use it instead of reg_iv_class array.
      	* unroll.c (REG_IV_CLASS): Likewise.
      
      From-SVN: r38580
      Michael Hayes committed
    • loop.c (loop_giv_reduce_benefit): Break out from strength_reduce. · e304a8e6
      	* loop.c (loop_giv_reduce_benefit): Break out from strength_reduce.
      	(loop_givs_dead_check, loop_givs_reduce, loop_givs_rescan): Likewise.
      	(prescan_loop): Set pre_header_has_call in loop_info.
      	* loop.h (struct_iv_class): Add `final_value' and `all_reduced'.
      	(struct loop_info): Add `pre_header_has_call'.
      
      From-SVN: r38578
      Michael Hayes committed
    • loop.h (REGNO_FIRST_LUID, [...]): Define. · 8529a489
      	* loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Define.
      	* loop.c (REGNO_FIRST_LUID, REGNO_LAST_LUID): Use in place of
      	direct access to uid_luid array.
      	* unroll.c (REGNO_FIRST_LUID, REGNO_LAST_LUID): Likewise.
      
      From-SVN: r38575
      Michael Hayes committed
    • loop.h (struct loop_movables): New. · 6ec92010
      	* loop.h (struct loop_movables): New.
      	(LOOP_MOVABLES): New.
      	(struct loop_info): Add movables field.
      	* loop.c (struct movables): Delete.  Replace all uses
      	with struct loop_movables.
      	(the_movables): Delete.  Replace all uses with movables
      	field in loop_info.
      	(loop_movables_add, loop_movables_free): New functions.
      	(scan_loop): Use xmalloc instead of alloca for movables.
      	Call loop_movables_free.
      
      From-SVN: r38573
      Michael Hayes committed
  24. 19 Sep, 2000 1 commit
  25. 14 Sep, 2000 1 commit
  26. 11 Sep, 2000 3 commits
    • loop.h (LOOP_IVS): New macro. · ed5bb68d
      	* loop.h (LOOP_IVS): New macro.
      	(REG_IV_TYPE, REG_IV_INFO): Add ivs argument.
      	(struct loop_ivs): New.
      	(struct loop_info): Add ivs field.
      	(reg_iv_type, reg_iv_info): Delete prototype.
      	(reg_biv_class, loop_iv_list): Likewise.
      	* loop.c (record_biv, find_life_end): Pass loop argument.
      	(reg_iv_type): Remove global array and use
      	field in loop_regs structure within loop_ivs structure.
      	(reg_iv_info, reg_biv_class, loop_iv_list): Likewise.
      	(first_increment_giv, last_increment_giv): Use entry in
      	loop_ivs structure.
      	(record_initial): Pass ivs pointer.
      	* unroll.c (copy_loop_body, remap_split_bivs): Add loop argument.
      
      From-SVN: r36336
      Michael Hayes committed
    • loop.h (LOOP_REGS): New macro. · 1ecd860b
      	* loop.h (LOOP_REGS): New macro.
      	(struct loop_regs): New.
      	(struct loop_info): Add regs field.
      	* loop.c (set_in_loop): Remove global array and store
      	in loop_regs structure as part of loop_info structure.
      	(n_times_set, may_not_optimize): Likewise.
      	(reg_single_usage, moved_once): Likewise.
      	(count_one_set): Add regs argument.
      	(combine_movables, rtx_equal_for_loop_p, combine_givs): Likewise.
      	(set_pseudo_multiple_uses): Pass regs pointer.
      
      From-SVN: r36335
      Michael Hayes committed
    • unroll.c (iteration_info): Subsume into loop_iterations. · 0a5b41f2
      	* unroll.c (iteration_info): Subsume into loop_iterations.
      	* loop.h (loop_info): New field iv.
      
      From-SVN: r36334
      Michael Hayes committed
  27. 09 Sep, 2000 1 commit
    • loop.h (struct loop_mem_info): Move from loop.c (struct loop_info): Add fields store_mems... · afa1738b
      	* loop.h (struct loop_mem_info): Move from loop.c
      	(struct loop_info): Add fields store_mems, mems, mems_idx,
      	mems_allocated, unknown_address_altered,
      	unknown_constant_address_altered, num_mem_sets, and
      	first_loop_store_insn.
      
      	* loop.c (loop_store_mems): Replace with field in loop_info struct.
      	(loop_mems, loop_mems_idx, loop_mems_allocated): Likewise.
      	(unknown_address_altered, unknown_constant_address_altered): Likewise.
      	(num_mem_sets): Likewise.
       	(replace_loop_mems, replace_loop_regs): New.
      	(struct loop_replace_args): New.
      	(load_mems): Use replace_loop_mems.
      	(try_copy_prop): Use replace_loop_regs.
      	(replace_loop_reg, replace_loop_mem): Use loop_replace_args structure.
      
      From-SVN: r36284
      Michael Hayes committed
  28. 07 Sep, 2000 1 commit
    • loop.c (strength_reduce): Call check_ext_dependant_givs. · e8cb4873
              * loop.c (strength_reduce): Call check_ext_dependant_givs.
              Properly extend the biv initial value for the giv.
              (record_biv): Zero ext_dependant.
              (record_giv): New argument ext_val.  Update all callers.
              (general_induction_var): Likewise.
              (consec_sets_giv): Likewise.
              (simplify_giv_expr): Likewise.  Fill in ext_val if we find
              a sign-extend, zero-extend, or truncate.
              (combine_givs_p): Make sure modes are compatible.
              (check_ext_dependant_givs): New.
              (extend_value_for_giv): New.
              * loop.h (struct induction): Add ext_dependant.
              * unroll.c (iteration_info): Extend the biv initial value for the giv.
              (find_splittable_givs): Likewise.
              (final_giv_value): Likewise.
      
      From-SVN: r36250
      Richard Henderson committed
  29. 30 Jul, 2000 1 commit
    • Makefile.in (OBJS): Add doloop.o. · 5527bf14
      	* Makefile.in (OBJS): Add doloop.o.
      	* doloop.c: New file.
      
      	* final.c (insn_current_reference_address): Return 0 before final.
      	* flags.h (flag_branch_on_count_reg): Fix typos in commentary.
      	* jump.c (any_uncondjump_p): Likewise.
      	* loop.c (indirect_jump_in_function): Make static.
      	(strength_reduce): Call doloop_optimize.
      	(insert_bct, instrument_loop_bct): Remove.
      	* loop.h (doloop_optimize): Prototype.
      	* recog.c (split_all_insns): Split all INSN_P.
      	* toplev.c (flag_branch_on_count_reg): Default on.
      
      	* config/c4x/c4x.c (c4x_optimization_options): Don't set
      	flag_branch_on_count_reg.
      	* config/i386/i386.c (override_options): Likewise.
      	* config/rs6000/rs6000.c (optimization_options): Likewise.
      
      	* config/i386/i386.md (decrement_and_branch_on_count): Remove.
      	(doloop_end): New.
      	(dbra_ge): Remove, as well as all it's splitters.
      
      	* config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
      	(doloop_end): New.
      
      	* config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
      	(ia64_register_move_cost): Declare.
      	* config/ia64/ia64.c (ar_lc_reg_operand): New.
      	(struct ia64_frame_info): Add ar_size.
      	(ia64_compute_frame_size): Set it.
      	(save_restore_insns): Save and restore ar.lc.
      	(ia64_register_move_cost): New, moved from header file.  Handle
      	application registers.
      	(REG_AR_PFS, REG_AR_EC): Remove.  Replace with AR_*_REGNUM numbers.
      	(emit_insn_group_barriers): Special case doloop_end_internal.
      	(ia64_epilogue_uses): Mark ar.lc live at end.
      	* config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
      	(AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
      	(FIRST_PSEUDO_REGISTER): Make room.
      	(AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
      	(FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
      	(REG_ALLOC_ORDER): Update.
      	(HARD_REGNO_MODE_OK): Update.
      	(REGISTER_NAMES): Update.
      	(enum reg_class): Add AR_M_REGS and AR_I_REGS.
      	(REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
      	(REGNO_REG_CLASS): Update.
      	(LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
      	(REGISTER_MOVE_COST): Move out of line.
      	(PREDICATE_CODES): Update.
      	* config/ia64/ia64.md (movdi patterns): Handle ar register classes.
      	(addsi3_plus1_alt, adddi3_plus1_alt): New.
      	(shladd_elim splitter): Allow constants in the predicate.
      	(doloop_end, doloop_end_internal): New.
      
      From-SVN: r35358
      Richard Henderson committed
  30. 25 May, 2000 1 commit
    • revert: loop.h (struct induction): Add multi_insn_incr. · 98d1cd45
      	* Back out this patch:
      	Tue Dec  7 19:22:06 1999  Richard Henderson  <rth@cygnus.com>
                * loop.h (struct induction): Add multi_insn_incr.
                * loop.c (basic_induction_var): New multi_insn_incr argument.
                Set it if we search back through previous insns for the biv.
                (record_biv): New multi_insn_incr argument; fill in struct induction.
                (strength_reduce): Discard an iv with multiple bivs, any of
                which require multiple insns to increment.
      
      	* loop.c (check_insn_for_bivs): Remove bits copied from above patch.
      
      From-SVN: r34151
      J"orn Rennecke committed
  31. 19 May, 2000 1 commit
    • cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0. · efc9bd41
      	* cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0.
      	* reload.c (find_equiv_reg): Likewise.
      	* alias.c (init_alias_analysis): Likewise.
      	Only call prologue_epilogue_contains on insns.
      	* basic-block.h (REG_SET_TO_HARD_REG_SET): Call new function.
      	* bb-reorder.c (hard-reg-set.h): Include earlier.
      	* haifa-sched.c (hard-reg-set.h): Likewise.
      	* ifcvt.c (hard-reg-set.h): Likewise.
      	* local-alloc.c (hard-reg-set.h): Likewise.
      	* loop.c (hard-reg-set.h): Likewise.
      	* predict.c (hard-reg-set.h): Likewise.
      	* regrename.c (hard-reg-set.h): Likewise.
      	* flow.c (hard-reg-set.h): Likewise.
      	(reg_set_to_hard_reg_set): New function.
      	* bitmap.c (regs.h, basic-block.h): No longer include.
      	(bitmap.h): Now include.
      	* conflict.c (hard-reg-set.h): Include.
      	* profile.c (hard-reg-set.h): Likewise.
      	* print-rtl.c (hard-reg-set.h): Likewise.
      	* sbitmap.c (hard-reg-set.h): Likewise.
      	* toplev.c (hard-reg-set.h): Likewise.
      	* unroll.c (hard-reg-set.h, basic-block.h): Likewise.
      	* hard-reg-set.h (reg_names): Now constant.
      	* regs.h (reg_names): Likewise.
      	* regclass.c (reg_names): Likewise.
      	* loop.h (basic-block.h): No longer include.
      	(bitmap.h): Now include.
      	* reload1.c (order_regs_for_reload): Avoid loop over reg sets.
      	* Makefile.in (LOOP_H, sbitmap.o, profile.o): Reflect above changes.
      	(toplev.o, print-rtl.o, conflict.o, unroll.o, bitmap.o): Likewise.
      
      From-SVN: r34039
      Richard Kenner committed
  32. 15 May, 2000 1 commit