lcm.c (optimize_mode_switching): Change bb used as indices to bb->index.
* lcm.c (optimize_mode_switching): Change bb used as indices to bb->index. From-SVN: r53860
This commit is contained in:
parent
8beda321a5
commit
c429f12e2e
@ -1,3 +1,8 @@
|
|||||||
|
2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
|
||||||
|
|
||||||
|
* lcm.c (optimize_mode_switching): Change bb used as indices
|
||||||
|
to bb->index.
|
||||||
|
|
||||||
2002-05-24 Richard Henderson <rth@redhat.com>
|
2002-05-24 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
* config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
|
* config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
|
||||||
|
12
gcc/lcm.c
12
gcc/lcm.c
@ -1149,21 +1149,21 @@ optimize_mode_switching (file)
|
|||||||
/* If the block already has MODE, pretend it
|
/* If the block already has MODE, pretend it
|
||||||
has none (because we don't need to set it),
|
has none (because we don't need to set it),
|
||||||
but retain whatever mode it computes. */
|
but retain whatever mode it computes. */
|
||||||
if (info[bb].seginfo->mode == mode)
|
if (info[bb->index].seginfo->mode == mode)
|
||||||
info[bb].seginfo->mode = no_mode;
|
info[bb->index].seginfo->mode = no_mode;
|
||||||
|
|
||||||
/* Insert a fake computing definition of MODE into entry
|
/* Insert a fake computing definition of MODE into entry
|
||||||
blocks which compute no mode. This represents the mode on
|
blocks which compute no mode. This represents the mode on
|
||||||
entry. */
|
entry. */
|
||||||
else if (info[bb].computing == no_mode)
|
else if (info[bb->index].computing == no_mode)
|
||||||
{
|
{
|
||||||
info[bb].computing = mode;
|
info[bb->index].computing = mode;
|
||||||
info[bb].seginfo->mode = no_mode;
|
info[bb->index].seginfo->mode = no_mode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bb = EXIT_BLOCK_PTR;
|
bb = EXIT_BLOCK_PTR;
|
||||||
info[bb].seginfo->mode = mode;
|
info[bb->index].seginfo->mode = mode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* NORMAL_MODE */
|
#endif /* NORMAL_MODE */
|
||||||
|
Loading…
Reference in New Issue
Block a user