aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1996-03-05 18:39:19 +0000
committerDoug Evans <dje@gnu.org>1996-03-05 18:39:19 +0000
commit0b35ec04bf6738260f0c970775c5a0fbf48da38e (patch)
tree1a7e729056d5b4fd87ab470115e99c297c9979fc /gcc/loop.c
parent8c5b059c2d82ad7637d0bbd5fb43dc499117f2fa (diff)
downloadgcc-0b35ec04bf6738260f0c970775c5a0fbf48da38e.zip
gcc-0b35ec04bf6738260f0c970775c5a0fbf48da38e.tar.gz
gcc-0b35ec04bf6738260f0c970775c5a0fbf48da38e.tar.bz2
loop.c (init_loop): Use pseudo reg in add_cost computation so cost doesn't vary depending on...
* loop.c (init_loop): Use pseudo reg in add_cost computation so cost doesn't vary depending on whether reg 0 happens to be fixed or not. From-SVN: r11458
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index 5514b91..489d620 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -302,7 +302,7 @@ void
init_loop ()
{
char *free_point = (char *) oballoc (1);
- rtx reg = gen_rtx (REG, word_mode, 0);
+ rtx reg = gen_rtx (REG, word_mode, LAST_VIRTUAL_REGISTER + 1);
add_cost = rtx_cost (gen_rtx (PLUS, word_mode, reg, reg), SET);