aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorSteven Bosscher <stevenb.gcc@gmail.com>2007-11-10 14:54:39 +0000
committerPaolo Bonzini <bonzini@gcc.gnu.org>2007-11-10 14:54:39 +0000
commit2272b24c41fcf6948c636946d8caf17d752b4a99 (patch)
treef9a442172c86c08ed6a49234576fa03de3f932ea /gcc/gcse.c
parent78e4746337d87401a818d0179597e19fab620ee0 (diff)
downloadgcc-2272b24c41fcf6948c636946d8caf17d752b4a99.zip
gcc-2272b24c41fcf6948c636946d8caf17d752b4a99.tar.gz
gcc-2272b24c41fcf6948c636946d8caf17d752b4a99.tar.bz2
gcse.c (CUID_INSN): Remove.
2007-11-10 Steven Bosscher <stevenb.gcc@gmail.com> * gcse.c (CUID_INSN): Remove. (cuid_insn): Ditto. (alloc_gcse_mem): Don't allocate cuid_insn. (free_gcse_mem): Don't free cuid_insn. From-SVN: r130071
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index b0a592d..21d3da4 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -380,12 +380,6 @@ static int max_uid;
/* Number of cuids. */
static int max_cuid;
-/* Mapping of cuids to insns. */
-static rtx *cuid_insn;
-
-/* Get insn from cuid. */
-#define CUID_INSN(CUID) (cuid_insn[CUID])
-
/* Maximum register number in function prior to doing gcse + 1.
Registers created during this pass have regno >= max_gcse_regno.
This is named with "gcse" to not collide with global of same name. */
@@ -942,15 +936,7 @@ alloc_gcse_mem (void)
uid_cuid[INSN_UID (insn)] = i;
}
- /* Create a table mapping cuids to insns. */
-
max_cuid = i;
- cuid_insn = gcalloc (max_cuid + 1, sizeof (rtx));
- i = 0;
- FOR_EACH_BB (bb)
- FOR_BB_INSNS (bb, insn)
- if (INSN_P (insn))
- CUID_INSN (i++) = insn;
/* Allocate vars to track sets of regs. */
reg_set_bitmap = BITMAP_ALLOC (NULL);
@@ -971,7 +957,6 @@ static void
free_gcse_mem (void)
{
free (uid_cuid);
- free (cuid_insn);
BITMAP_FREE (reg_set_bitmap);