aboutsummaryrefslogtreecommitdiff
path: root/gcc/flow.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@gcc.gnu.org>2001-07-16 10:54:34 -0700
committerRichard Henderson <rth@gcc.gnu.org>2001-07-16 10:54:34 -0700
commit4e2db58460e396ff0a66e3c87f94665c2a7c1ffc (patch)
tree91f60d01900241bcf2cec0a70c51d3cdca1a9403 /gcc/flow.c
parentfb124b992c3235992f5fc7f781266d5708d3a215 (diff)
downloadgcc-4e2db58460e396ff0a66e3c87f94665c2a7c1ffc.zip
gcc-4e2db58460e396ff0a66e3c87f94665c2a7c1ffc.tar.gz
gcc-4e2db58460e396ff0a66e3c87f94665c2a7c1ffc.tar.bz2
hard-reg-set.h (regs_invalidated_by_call): Declare.
* hard-reg-set.h (regs_invalidated_by_call): Declare. * regclass.c (regs_invalidated_by_call): Move from cse.c. (init_reg_sets_1): Move initialization from cse_main. * cse.c (regs_invalidated_by_call): Move to regclass.c. (cse_main): Move its initialization also. * df.c (df_insn_refs_record): Use regs_invalidated_by_call. * flow.c (propagate_one_insn): Likewise. * gcse.c (compute_hash_table): Likewise. (compute_kill_rd, compute_store_table): Likewise. * sched-deps.c (sched_analyze_1): Likewise. From-SVN: r44053
Diffstat (limited to 'gcc/flow.c')
-rw-r--r--gcc/flow.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index 56b40f0..6d25582 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -4948,8 +4948,7 @@ propagate_one_insn (pbi, insn)
/* Calls change all call-used and global registers. */
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
- if (call_used_regs[i] && ! global_regs[i]
- && ! fixed_regs[i])
+ if (TEST_HARD_REG_BIT (regs_invalidated_by_call, i))
{
/* We do not want REG_UNUSED notes for these registers. */
mark_set_1 (pbi, CLOBBER, gen_rtx_REG (reg_raw_mode[i], i),