diff options
author | Jeff Law <law@redhat.com> | 2002-06-16 13:31:01 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2002-06-16 13:31:01 -0600 |
commit | 006a94b08c59a00a79d60c2c9f5dc4652fde02ea (patch) | |
tree | 102580f2d5e7788ed7a5e7e98d0859ccc4f667a8 /gcc/emit-rtl.c | |
parent | 750491fc108a82d74c1af8bd4438f39eb4feebc2 (diff) | |
download | gcc-006a94b08c59a00a79d60c2c9f5dc4652fde02ea.zip gcc-006a94b08c59a00a79d60c2c9f5dc4652fde02ea.tar.gz gcc-006a94b08c59a00a79d60c2c9f5dc4652fde02ea.tar.bz2 |
emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic sharing of hard registers.
* emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
sharing of hard registers.
* toplev.c (rest_of_compilation): Remove redundant conditional.
From-SVN: r54672
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 5186c85..225b8c8 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -533,14 +533,21 @@ gen_rtx_REG (mode, regno) return stack_pointer_rtx; } +#if 0 /* If the per-function register table has been set up, try to re-use - an existing entry in that table to avoid useless generation of RTL. */ + an existing entry in that table to avoid useless generation of RTL. + + This code is disabled for now until we can fix the various backends + which depend on having non-shared hard registers in some cases. Long + term we want to re-enable this code as it can significantly cut down + on the amount of useless RTL that gets generated. */ if (cfun && cfun->emit && regno_reg_rtx && regno < FIRST_PSEUDO_REGISTER && reg_raw_mode[regno] == mode) return regno_reg_rtx[regno]; +#endif return gen_raw_REG (mode, regno); } |