mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-09 07:06:46 +08:00
reload1.c (reload_combine): Fixed calculation of first_index_reg, last_index_reg.
* reload1.c (reload_combine): Fixed calculation of first_index_reg, last_index_reg. From-SVN: r37360
This commit is contained in:
parent
13507bd80d
commit
881a89697e
@ -1,3 +1,8 @@
|
||||
2000-11-09 Matthew Hiller <hiller@redhat.com>
|
||||
|
||||
* reload1.c (reload_combine): Fixed calculation of
|
||||
first_index_reg, last_index_reg.
|
||||
|
||||
2000-11-09 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* c-dump.c (dequeue_and_dump): Dump function bodies.
|
||||
|
@ -8363,7 +8363,7 @@ static void
|
||||
reload_combine ()
|
||||
{
|
||||
rtx insn, set;
|
||||
int first_index_reg = 1, last_index_reg = 0;
|
||||
int first_index_reg = -1, last_index_reg;
|
||||
int i;
|
||||
unsigned int r;
|
||||
int last_label_ruid;
|
||||
@ -8381,14 +8381,14 @@ reload_combine ()
|
||||
for (r = 0; r < FIRST_PSEUDO_REGISTER; r++)
|
||||
if (TEST_HARD_REG_BIT (reg_class_contents[INDEX_REG_CLASS], r))
|
||||
{
|
||||
if (! first_index_reg)
|
||||
if (first_index_reg == -1)
|
||||
first_index_reg = r;
|
||||
|
||||
last_index_reg = r;
|
||||
}
|
||||
|
||||
/* If no index register is available, we can quit now. */
|
||||
if (first_index_reg > last_index_reg)
|
||||
if (first_index_reg == -1)
|
||||
return;
|
||||
|
||||
/* Set up LABEL_LIVE and EVER_LIVE_AT_START. The register lifetime
|
||||
|
Loading…
Reference in New Issue
Block a user