diff options
author | Jan Hubicka <jh@suse.cz> | 2003-02-20 21:56:53 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2003-02-20 20:56:53 +0000 |
commit | b9422b69c4574ea53d1a5fdbc90de3935589e502 (patch) | |
tree | 2415e41e359f1d67f528163fbed9de0eeb20bffe /gcc/reg-stack.c | |
parent | e182f0a397a1b985f86641787df37d12b1d00aa3 (diff) | |
download | gcc-b9422b69c4574ea53d1a5fdbc90de3935589e502.zip gcc-b9422b69c4574ea53d1a5fdbc90de3935589e502.tar.gz gcc-b9422b69c4574ea53d1a5fdbc90de3935589e502.tar.bz2 |
toplev.c (flag_sched2_use_superblocks, [...]): New global variables.
* toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New global variables.
(lang_independent_options): Add -fsched2-use-superblocks -fsced2-use-traces.
(rest_of_compilation): Deal with it.
* invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare.
* flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces): Declare.
* rtl.h (reg_to_stack): Update prototype.
* reg-stack.c (reg_to_stack): Return when something has changed;
update liveness when executing after superblock scheduling.
* combine.c (simplify_shift_const): Simplify few special cases
into constants.
From-SVN: r63183
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r-- | gcc/reg-stack.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index 965aad0..f8f4b31 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -416,7 +416,7 @@ pop_stack (regstack, regno) code duplication created when the converter inserts pop insns on the edges. */ -void +bool reg_to_stack (first, file) rtx first; FILE *file; @@ -437,11 +437,15 @@ reg_to_stack (first, file) if (regs_ever_live[i]) break; if (i > LAST_STACK_REG) - return; + return false; /* Ok, floating point instructions exist. If not optimizing, - build the CFG and run life analysis. */ - if (!optimize) + build the CFG and run life analysis. + Also need to rebuild life when superblock scheduling is done + as it don't update liveness yet. */ + if (!optimize + || (flag_sched2_use_superblocks + && flag_schedule_insns_after_reload)) { count_or_remove_death_notes (NULL, 1); life_analysis (first, file, PROP_DEATH_NOTES); @@ -498,6 +502,7 @@ reg_to_stack (first, file) convert_regs (file); free_aux_for_blocks (); + return true; } /* Check PAT, which is in INSN, for LABEL_REFs. Add INSN to the |