Author: zoltan
Date: 2008-02-07 08:19:17 -0500 (Thu, 07 Feb 2008)
New Revision: 95137
Modified:
trunk/mono/mono/mini/mini-alpha.c
trunk/mono/mono/mini/mini-ppc.c
Log:
Fix some problems in the previous patch.
Modified: trunk/mono/mono/mini/mini-alpha.c
===================================================================
--- trunk/mono/mono/mini/mini-alpha.c 2008-02-07 13:18:53 UTC (rev 95136)
+++ trunk/mono/mono/mini/mini-alpha.c 2008-02-07 13:19:17 UTC (rev 95137)
@@ -579,11 +579,6 @@
}
}
-void
-mono_arch_lowering_pass (MonoCompile *cfg, MonoBasicBlock *bb)
-{
-}
-
// Convert to opposite branch opcode
static guint16 cvt_branch_opcode(guint16 opcode)
{
@@ -1176,33 +1171,6 @@
bb->max_vreg = cfg->rs->next_vreg;
}
-/*------------------------------------------------------------------*/
-/* */
-/* Name - mono_arch_local_regalloc. */
-/* */
-/* Function - We first scan the list of instructions and we */
-/* save the liveness information of each register */
-/* (when the register is first used, when its value */
-/* is set etc.). We also reverse the list of instr- */
-/* uctions (in the InstList list) because assigning */
-/* registers backwards allows for more tricks to be */
-/* used. */
-/* */
-/*------------------------------------------------------------------*/
-
-void
-mono_arch_local_regalloc (MonoCompile *cfg, MonoBasicBlock *bb)
-{
- CFG_DEBUG(2) ALPHA_DEBUG("mono_arch_local_regalloc");
-
- if (MONO_INST_LIST_EMPTY (&bb->ins_list))
- return;
-
- mono_arch_lowering_pass (cfg, bb);
-
- mono_local_regalloc(cfg, bb);
-}
-
/*========================= End of Function ========================*/
#define AXP_GENERAL_REGS 6
Modified: trunk/mono/mono/mini/mini-ppc.c
===================================================================
--- trunk/mono/mono/mini/mini-ppc.c 2008-02-07 13:18:53 UTC (rev 95136)
+++ trunk/mono/mono/mini/mini-ppc.c 2008-02-07 13:19:17 UTC (rev 95137)
@@ -1679,7 +1679,7 @@
* represented with very simple instructions with no register
* requirements.
*/
-static void
+void
mono_arch_lowering_pass (MonoCompile *cfg, MonoBasicBlock *bb)
{
MonoInst *ins, *next, *temp;
@@ -1832,15 +1832,6 @@
}
-void
-mono_arch_local_regalloc (MonoCompile *cfg, MonoBasicBlock *bb)
-{
- if (MONO_INST_LIST_EMPTY (&bb->ins_list))
- return;
- mono_arch_lowering_pass (cfg, bb);
- mono_local_regalloc (cfg, bb);
-}
-
static guchar*
emit_float_to_int (MonoCompile *cfg, guchar *code, int dreg, int sreg, int
size, gboolean is_signed)
{
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches