aboutsummaryrefslogtreecommitdiff
path: root/gcc/local-alloc.c
AgeCommit message (Collapse)AuthorFilesLines
1996-08-11(reg_equiv_replace): New variable.Richard Kenner1-21/+35
(update_equiv_regs): Set reg_equiv_replacement for all REG_EQUIV notes encountered or generated. From-SVN: r12618
1996-07-03formatting tweaksMike Stump1-8/+8
From-SVN: r12390
1996-06-10local-alloc.c (update_equiv_regs): Ignore insns that read or write registers ↵Jeff Law1-3/+9
that are likely to be spilled. * local-alloc.c (update_equiv_regs): Ignore insns that read or write registers that are likely to be spilled. From-SVN: r12272
1996-03-22(optimize_reg_copy_1): Only update reg_live_length if it isRichard Kenner1-7/+13
non-negative. From-SVN: r11596
1996-01-16(memref_referenced_p, case REG): Fix last change.Richard Kenner1-2/+2
From-SVN: r11020
1996-01-06Fix formatting.Richard Kenner1-1/+1
From-SVN: r10948
1996-01-01(reg_equiv_replacement): New variable.Richard Kenner1-3/+12
(memref_referenced_p, case REG): Check for reg_equiv_replacement. (update_equiv_regs): reg_equiv_replacement now file-scope. From-SVN: r10930
1995-12-31hard-reg-set.h (losing_caller_save_reg_set): Declare.Jeff Law1-11/+7
* hard-reg-set.h (losing_caller_save_reg_set): Declare. * regclass.c (losing_caller_save_reg_set): Define. (init_reg_sets_1): Initialize losing_caller_save_reg_set. * global.c (find_reg): Avoid caller-saving registers in LOSING_CALLER_SAVE_REGS if it's defined. * local-alloc.c (find_free_reg): Avoid caller-saving registers in losing_caller_save_reg_set. (CLASS_LIKELY_SPILLED_P): Delete definition. Moved into regs.h. * regs.h (CLASS_LIKELY_SPILLED_P): Define if not already defined. From-SVN: r10926
1995-12-16(optimize_reg_copy_2): Don't attempt optimization if destinationRichard Kenner1-1/+2
register dies. From-SVN: r10780
1995-08-21(wipe_dead_reg): Make a register mentioned in a REG_INC note die afterRichard Kenner1-1/+7
the instruction. From-SVN: r10264
1995-06-15Update FSF address.Richard Kenner1-1/+2
From-SVN: r9961
1995-05-16Fix typos in comments.Richard Kenner1-1/+1
From-SVN: r9712
1995-02-21local-alloc.c (block_alloc): Stop looping over the input operands once we ↵Jeff Law1-0/+2
find an input/output register pair... * local-alloc.c (block_alloc): Stop looping over the input operands once we find an input/output register pair which can be combined into a single qty. From-SVN: r8990
1994-08-08(find_free_reg): Fix typo in last change.Richard Kenner1-1/+1
From-SVN: r7871
1994-08-07(qty_changes_size): New variable.Richard Kenner1-0/+17
(alloc_qty{,_for_scratch}, update_qty_class): Set it. (local_alloc): Allocate it. (find_free_reg): If CLASS_CANNOT_CHANGE_SIZE, avoid its registers if qty_changes_size. From-SVN: r7865
1994-06-14Cast pointer operands to bzero, bcopy, and bcmp to (char *).Richard Kenner1-10/+14
From-SVN: r7472
1994-05-27(local_alloc): Fix typo in last change.Richard Kenner1-2/+2
From-SVN: r7361
1994-05-27(requires_inout): Renamed from requires_inout_p and returns number of ↵Richard Kenner1-16/+47
alternatives that require a match. (requires_inout): Renamed from requires_inout_p and returns number of alternatives that require a match. (block_alloc): Use new function and handle case where all alternatives have some operand that must match operand 0. From-SVN: r7358
1994-05-27(qty_sugg_compare_1): Fix typo in last change.Richard Kenner1-1/+1
From-SVN: r7357
1994-05-27(qty_phys_num{,_copy}_sugg): New variables.Richard Kenner1-31/+143
(qty_phys_has{,_copy}_sugg): Deleted. (qty_sugg_compare{,_1}): New functions. (local_alloc): Allocate and init new vars instead of deleted ones. (block_alloc): Update and use new vars. Order quantities using new functions when allocating quantities with suggested registers. (combine_regs, find_free_reg): Use new vars to count number of suggestions. From-SVN: r7356
1994-04-21Add prototypes for static functions.Richard Kenner1-18/+29
From-SVN: r7118
1994-04-08Remove previous Berg change.Richard Kenner1-1/+5
From-SVN: r6998
1994-04-06(block_alloc): Avoid #ifdef HARD_REG_SET.Richard Kenner1-5/+1
From-SVN: r6976
1994-02-27(qty_compare{,_1}): Give multi-word regs higher priority, as stated inRichard Kenner1-8/+10
the comments. From-SVN: r6649
1994-02-14(optimize_reg_copy): A register that dies in a CALL_INSN doesn't crossRichard Kenner1-2/+4
that call. From-SVN: r6555
1993-12-23(optimize_reg_copy_1): After decreasing sregno'sJim Wilson1-0/+5
reg_live_length, correct it if it is now obviously too small. From-SVN: r6291
1993-09-24local-alloc.c: (find_free_reg): Make sure we will always be able to eliminate...Doug Evans1-0/+5
* local-alloc.c: (find_free_reg): Make sure we will always be able to eliminate FRAME_POINTER_REGNUM into HARD_FRAME_POINTER_REGNUM. From-SVN: r5460
1993-08-03(block_alloc): Don't attempt to allocate aJim Wilson1-1/+4
SCRATCH if it will not fit in scratch_list. From-SVN: r5058
1993-06-23(alloc_qty_for_scratch): Can allocate likely-spilled register classes for ↵Richard Kenner1-14/+8
SCRATCH. (alloc_qty_for_scratch): Can allocate likely-spilled register classes for SCRATCH. (block_alloc): Likewise for regs in small register classes. From-SVN: r4719
1993-06-23(scratch_block, scratch_list{,_length}, scratch_index): New variables.Richard Kenner1-5/+18
(local_alloc): Allocate and initialize them. (block_alloc): Only allocate a SCRATCH if it can fit in the block we make. Don't mark regs used in SCRATCH live here; instead, make entry in new tables. From-SVN: r4713
1993-05-11(block_alloc): Don't dereference a NULL pointer.Richard Stallman1-0/+1
From-SVN: r4425
1993-04-16(qty_n_refs): Make int, like reg_n_refs.Richard Kenner1-10/+10
(qty_first_reg, reg_next_in_qty): Make int, not short. (local_alloc): Allocate these as arrays of ints. (block_alloc, qty_compare_1): qty_order is now array of ints. From-SVN: r4167
1993-03-31(optimize_reg_copy_1): Don't increment n_calls specially if P is a call_insn.Richard Stallman1-6/+0
From-SVN: r3948
1993-01-24(CLASS_LIKELY_SPILLED_P): Add default definition.Richard Kenner1-4/+15
(alloc_qty_for_scratch, local_alloc): Use CLASS_LIKELY_SPILLED_P. From-SVN: r3319
1993-01-19(find_free_reg): Add comment about nonlocal labels.Richard Kenner1-0/+4
From-SVN: r3283
1993-01-03(block_alloc): Generalize tying so we can tie any operand with the output ↵Richard Kenner1-40/+56
unless some operand must be in the same register as the output... (block_alloc): Generalize tying so we can tie any operand with the output unless some operand must be in the same register as the output, in which case only try tying that operand. From-SVN: r3075
1992-12-01(optimize_reg_copy_2): Correct reg_n_refs updates.Jim Wilson1-2/+2
From-SVN: r2829
1992-11-04(optimize_reg_copy_1): If P is a CALL_INSN, count it as being crossedRichard Kenner1-0/+6
by SRC since SRC used to die there. From-SVN: r2689
1992-10-09(optimize_reg_copy_1): Tighten up code to properly handle the case when...Richard Kenner1-8/+44
(optimize_reg_copy_1): Tighten up code to properly handle the case when SRC or DEST is a multi-word hard register and only some parts of the register are set or used. Also, avoid updating register status for DEST if we can't do the optimization. From-SVN: r2380
1992-08-19(alloc_qty_for_scratch, block_alloc): Provide alternate code in some cases ↵Richard Kenner1-2/+36
when REGISTER_CONSTRAINTS is not defined. (alloc_qty_for_scratch, block_alloc): Provide alternate code in some cases when REGISTER_CONSTRAINTS is not defined. (requires_inout_p): Only used when REGISTER_CONSTRAINTS is defined. From-SVN: r1899
1992-07-06entered into RCSCharles Hannum1-6/+7
From-SVN: r1472
1992-06-27*** empty log message ***Richard Kenner1-10/+13
From-SVN: r1313
1992-05-07*** empty log message ***Richard Stallman1-5/+5
From-SVN: r930
1992-03-22*** empty log message ***Richard Stallman1-1/+21
From-SVN: r562
1992-03-14*** empty log message ***Richard Stallman1-3/+90
From-SVN: r472
1992-01-18Initial revisionRichard Stallman1-0/+1960
From-SVN: r208