2010-01-18 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mono / mini / liveness.c
index 20e9aa47533a7af1fd6792229db3dea3e6c2a759..20941f999e6e6127311d2ea4f582ee004543ff07 100644 (file)
 
 //#define DEBUG_LIVENESS
 
-#if SIZEOF_REGISTER == 8
-#define BITS_PER_CHUNK 64
-#else
-#define BITS_PER_CHUNK 32
-#endif
+#define BITS_PER_CHUNK MONO_BITSET_BITS_PER_CHUNK
 
 /* 
  * The liveness2 pass can't handle long vars on 32 bit platforms because the component
@@ -98,9 +94,7 @@ visit_bb (MonoCompile *cfg, MonoBasicBlock *bb, GSList **visited)
                        
                /* SREGS */
                num_sregs = mono_inst_get_src_registers (ins, sregs);
-               g_assert (num_sregs <= 2);
                for (srcindex = 0; srcindex < num_sregs; ++srcindex) {
-                       regtype = spec [(srcindex == 0) ? MONO_INST_SRC1 : MONO_INST_SRC2];
                        sreg = sregs [srcindex];
 
                        g_assert (sreg != -1);