aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2007-02-02 19:02:18 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2007-02-02 19:02:18 +0000
commita638bdc2fdb6a3fb16124e7ca1e1789070d5c0a8 (patch)
tree2a8e5c1153c6bdbd4e93812889138fc77017db8b /gcc
parent88c6f1018217155e6a92734074450505703a827b (diff)
downloadgcc-a638bdc2fdb6a3fb16124e7ca1e1789070d5c0a8.zip
gcc-a638bdc2fdb6a3fb16124e7ca1e1789070d5c0a8.tar.gz
gcc-a638bdc2fdb6a3fb16124e7ca1e1789070d5c0a8.tar.bz2
emit-rtl.c (renumber_insns): Remove.
* emit-rtl.c (renumber_insns): Remove. * flags.h: Remove the extern for flag_renumber_insns. * rtl.h: Remove the prototype for renumber_insns. * toplev.c (flag_renumber_insns): Remove. From-SVN: r121517
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/emit-rtl.c27
-rw-r--r--gcc/flags.h5
-rw-r--r--gcc/rtl.h1
-rw-r--r--gcc/toplev.c5
5 files changed, 7 insertions, 38 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3a5bae7..95987ef 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2007-02-02 Kazu Hirata <kazu@codesourcery.com>
+
+ * emit-rtl.c (renumber_insns): Remove.
+ * flags.h: Remove the extern for flag_renumber_insns.
+ * rtl.h: Remove the prototype for renumber_insns.
+ * toplev.c (flag_renumber_insns): Remove.
+
2007-02-02 Hui-May Chang <hm.chang@apple.com>
Revert for x86 darwin:
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 871ca38..94381a9e 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -2806,33 +2806,6 @@ get_max_uid (void)
{
return cur_insn_uid;
}
-
-/* Renumber instructions so that no instruction UIDs are wasted. */
-
-void
-renumber_insns (void)
-{
- rtx insn;
-
- /* If we're not supposed to renumber instructions, don't. */
- if (!flag_renumber_insns)
- return;
-
- /* If there aren't that many instructions, then it's not really
- worth renumbering them. */
- if (flag_renumber_insns == 1 && get_max_uid () < 25000)
- return;
-
- cur_insn_uid = 1;
-
- for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
- {
- if (dump_file)
- fprintf (dump_file, "Renumbering insn %d to %d\n",
- INSN_UID (insn), cur_insn_uid);
- INSN_UID (insn) = cur_insn_uid++;
- }
-}
/* Return the next insn. If it is a SEQUENCE, return the first insn
of the sequence. */
diff --git a/gcc/flags.h b/gcc/flags.h
index d2c1ca0..2671ec3 100644
--- a/gcc/flags.h
+++ b/gcc/flags.h
@@ -187,11 +187,6 @@ extern int flag_debug_asm;
extern int flag_next_runtime;
extern int flag_dump_rtl_in_asm;
-
-/* If one, renumber instruction UIDs to reduce the number of
- unused UIDs if there are a lot of instructions. If greater than
- one, unconditionally renumber instruction UIDs. */
-extern int flag_renumber_insns;
/* Other basic status info about current function. */
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 5cf87b8..80c3114 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -2059,7 +2059,6 @@ extern void add_insn_before (rtx, rtx);
extern void add_insn_after (rtx, rtx);
extern void remove_insn (rtx);
extern rtx emit (rtx);
-extern void renumber_insns (void);
extern rtx delete_insn (rtx);
extern rtx entry_of_function (void);
extern void emit_insn_at_entry (rtx);
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 28d93b3..56a78b4 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -333,11 +333,6 @@ int flag_dump_rtl_in_asm = 0;
the support provided depends on the backend. */
rtx stack_limit_rtx;
-/* If one, renumber instruction UIDs to reduce the number of
- unused UIDs if there are a lot of instructions. If greater than
- one, unconditionally renumber instruction UIDs. */
-int flag_renumber_insns = 1;
-
/* Nonzero if we should track variables. When
flag_var_tracking == AUTODETECT_VALUE it will be set according
to optimize, debug_info_level and debug_hooks in process_options (). */