Commit Graph

43 Commits

Author SHA1 Message Date
Jim Wilson
df5f5124d5 (sched_analyze_2): Make volatile asms depend on all
pseudo registers.

From-SVN: r5621
1993-10-05 16:22:04 -07:00
Jim Wilson
85cc7011a5 Add prototypes for static function.
(add_dependence, remove_dependence, regno_use_in): Now static.
(schedule_insns): Have dummy version also take FILE * parameter.

From-SVN: r5530
1993-09-29 12:04:41 -07:00
Jim Wilson
b5e9625567 (schedule_insns): Don't zero reg_n_calls_crossed for
pseudos live across multiple blocks.

From-SVN: r5515
1993-09-28 15:57:44 -07:00
Doug Evans
cd0ca9ad6d sched.c: (memrefs_conflict_p): We can work out whether references via...
* sched.c: (memrefs_conflict_p): We can work out whether references
via hard_frame_pointer_rtx are likely to conflict.
(attach_deaths, case REG): Don't add death notes for
HARD_FRAME_POINTER_REGNUM.

From-SVN: r5466
1993-09-24 19:54:46 +00:00
Richard Kenner
9e1835de3e (schedule_block): Correct type of BIT.
From-SVN: r5275
1993-09-07 14:40:27 -04:00
Jim Wilson
46aea93218 (sched_analyze_insn): Handle USE before a JUMP_INSN just
like a USE before a CALL_INSN.

From-SVN: r5141
1993-08-12 10:45:15 -07:00
Jim Wilson
211b330fd8 (schedule_insns): Don't emit a NOTE at the end of the last basic block if...
(schedule_insns): Don't emit a NOTE at the end of the last
basic block if that would put it between a JUMP_INSN and a BARRIER.

From-SVN: r5121
1993-08-09 12:37:23 -07:00
Jim Wilson
07f64b95a4 (schedule_block): Do not emit line number notes before other notes.
From-SVN: r5020
1993-07-28 10:40:30 -07:00
Jim Wilson
09d6547996 (add_dependence): Reject CODE_LABELs when searching for
last insn of a sched group.

From-SVN: r4667
1993-06-12 10:43:42 -07:00
Jim Wilson
35c7a24d64 (sched_analyze_2): Don't ignore USE insns when creating dependencies.
(sched_analyze): Likewise.

From-SVN: r4656
1993-06-10 09:55:59 -07:00
Jim Wilson
f52152d6ac (split_hard_reg_notes): Handle 0th sub register, and multiple register kills.
(split_hard_reg_notes): Handle 0th sub register, and
multiple register kills.
(update_flow_info): For multi-word hard regs, use
split_hard_reg_notes to add all REG_DEAD notes, instead of just
the additional ones due to splitting.

From-SVN: r4460
1993-05-14 14:16:34 -07:00
Jim Wilson
56b7c17e49 (create_reg_dead_note): Rewrite so as to conserve registers killed not number of REG_DEAD notes.
(create_reg_dead_note): Rewrite so as to conserve
registers killed not number of REG_DEAD notes.
(schedule_block): Change comments about dead_notes variable.

From-SVN: r4222
1993-04-25 14:24:15 -07:00
Richard Kenner
dc847d14bc (sched_analyze_1): Extra arg in anti_dependence call.
From-SVN: r4143
1993-04-13 17:21:21 -04:00
Jim Wilson
563465600f (schedule_block): Reset n_ready if schedule_select
removes all insns from ready list.

From-SVN: r3918
1993-03-29 14:34:25 -08:00
Jim Wilson
c3af9fc81e (reg_known_equiv_p): New variable.
(init_alias_analysis): Allocate and compute reg_known_equiv_p.
(sched_analyze_1): Reenable code for REG_EQUIV notes, using
reg_known_equiv_p so that it is only used on REG_EQUIV notes.
(sched_analyze_2): Likewise.  Only pass memory addresses to the
sched_analyze_2 call.

From-SVN: r3746
1993-03-15 11:48:38 -08:00
Jim Wilson
8b69d15430 (adjust_priority): Comment unreachable code.
(memrefs_conflict_p): Add comment about Fortran aliasing.

From-SVN: r3740
1993-03-15 11:33:21 -08:00
Jim Wilson
0b298be417 (true_dependence, anti_dependence, output_dependence):
Assume that MEM_IN_STRUCT_P QImode varying addresses can overlap a
non-MEM_IN_STRUCT_P fixed address.

From-SVN: r3426
1993-02-05 15:33:36 -08:00
Jim Wilson
edaf97c444 (sched_analyze_1...
(sched_analyze_1, sched_analyze_2): Ifdef out code added
for handling psuedo register equivalents that was added Dec 31 1992.

From-SVN: r3290
1993-01-19 17:13:48 -08:00
Jim Wilson
e6b89e8bf2 (sched_analyze_1, sched_analyze_2): If before reloading,
record dependences that may be introduced by reload substituting
equivalents for pseudo registers.

From-SVN: r3036
1992-12-31 14:44:22 -08:00
Jim Wilson
b7d9fc385d (sched_analyze_2): Use REG_NOTE_KIND not GET_MODE in add_dependence call.
(sched_analyze_insn): Likewise.

From-SVN: r3035
1992-12-31 14:42:35 -08:00
Jim Wilson
22162da3d7 (sched_note_set): Set subreg_p for anything except a paradoxical subreg.
From-SVN: r2464
1992-10-14 15:57:42 -07:00
Jim Wilson
bc78eb101e (sched_analyze_2, PRE_DEC case): Call sched_analyze_2 in
addition to sched_analyze_1.

From-SVN: r2240
1992-09-24 22:44:06 -07:00
Jim Wilson
11222b61f1 (sched_analyze_2): Remove an explicit dependence between an insn that uses CC0 and the immediately previous insn.
(sched_analyze_2): Remove an explicit dependence between an insn
that uses CC0 and the immediately previous insn.
(SCHED_GROUP_P represents the dependence.)
(schedule_block): Only check sets_cc0_p on an insn.

From-SVN: r2010
1992-08-31 18:26:25 -07:00
Jim Wilson
c0ac5f3197 Add #ifdef INSN_SCHEDULING around variables only used by schedule_insns.
Add #ifdef INSN_SCHEDULING around variables only used
by schedule_insns.
(INSN_QUEUE_SIZE): Delete default definition.

From-SVN: r1962
1992-08-25 23:49:54 -07:00
Richard Stallman
e939539ba6 (INSN_QUEUE_SIZE): Add default definition.
From-SVN: r1954
1992-08-25 21:36:10 +00:00
Tom Wood
de19227a25 (schedule_block): Add a virtual cycle counter CLOCK.
Pass CLOCK to schedule_insn.
	Compute the tail in the scheduling loop, not before it.
	Enable the stall code that advances the insn queue.
	Select the insn to schedule and block others with schedule_select.
	(adjust_priority): Renamed from launch_link.
	(schedule_insn): Renamed from launch_links.
(insn_queue): Use INSN_QUEUE_SIZE.

(insn_units, insn_blockage, insn_tick, unit_last_insn,
	unit_tick, unit_n_insns): New variables.
	(schedule_insns): Allocate and initialize insn_tick, insn_units, and
	insn_blockage.
	(insn_unit, blockage_range, clear_units, prepare_unit, schedule_unit,
	actual_hazard_this_instance, actual_hazard, potential_hazard,
	schedule_select): New functions.
	(schedule_block): Add dependencies to force insns to remain in order
	at the end of a block rather than relying on having the scheduler
	issue them in priority order.
(insn_cost): Add LINK and USED parameters.  All callers
	changed.  Supply an ADJUST_COST interface.
	(insn_cost): Make a dependence from a USE insn free.
	(priority): Clear the link cost adjustment bits.

From-SVN: r1951
1992-08-25 20:23:21 +00:00
Jim Wilson
5856c581ba (attach_deaths_insn): Don't call attach_deaths for CLOBBERs.
From-SVN: r1846
1992-08-14 15:51:36 -07:00
Jim Wilson
1f6fc4de69 (true_dependence): An unchanging read is guaranteed independent of a store only if the store is not unchanging.
(true_dependence): An unchanging read is guaranteed
independent of a store only if the store is not unchanging.
(anti_dependence): Added comment about unchanging reads.
(sched_analyze_2): Don't ignore unchanging reads, they may be
dependent on unchanging writes.

From-SVN: r1777
1992-08-06 19:02:19 -07:00
Jim Wilson
aa265568fe entered into RCS
From-SVN: r1656
1992-07-21 12:30:11 -07:00
Charles Hannum
fb3821f7b2 *** empty log message ***
From-SVN: r1474
1992-07-06 20:11:22 +00:00
Tom Wood
bdac5f5848 *** empty log message ***
From-SVN: r1336
1992-06-29 16:04:35 +00:00
Richard Stallman
6dc42e49d3 *** empty log message ***
From-SVN: r930
1992-05-07 06:41:23 +00:00
Jim Wilson
ead69aea20 *** empty log message ***
From-SVN: r874
1992-05-03 16:57:21 -07:00
Jim Wilson
c3de4fe682 *** empty log message ***
From-SVN: r873
1992-05-03 16:44:03 -07:00
Richard Stallman
6dab9d4109 *** empty log message ***
From-SVN: r800
1992-04-20 01:40:14 +00:00
Jim Wilson
d21d2fb80b *** empty log message ***
From-SVN: r794
1992-04-19 11:06:33 -07:00
Jim Wilson
a3ee589982 *** empty log message ***
From-SVN: r742
1992-04-14 10:46:57 -07:00
Jim Wilson
ea3fa5f72b *** empty log message ***
From-SVN: r708
1992-04-07 21:53:48 -07:00
Richard Stallman
9ae57db830 *** empty log message ***
From-SVN: r583
1992-03-24 20:00:52 +00:00
Jim Wilson
b85b8af2c0 *** empty log message ***
From-SVN: r522
1992-03-19 10:40:36 -08:00
Richard Stallman
b4ac57ab29 *** empty log message ***
From-SVN: r478
1992-03-14 05:17:01 +00:00
Jim Wilson
53dd0e6e8d *** empty log message ***
From-SVN: r344
1992-02-18 15:33:31 -08:00
Richard Kenner
bd58420c07 Initial revision
From-SVN: r271
1992-02-02 17:23:08 -05:00