* Dietmar Maurer (dietmar@ximian.com)
*
* (C) 2003 Ximian, Inc.
+ * Copyright 2011 Xamarin, Inc (http://www.xamarin.com)
*/
#include <config.h>
#include <string.h>
/* Rewrite all uses of var to be uses of var2 */
int dreg = var->dreg;
int sreg1 = var2->dreg;
- const char *spec;
l = info->uses;
while (l) {
int num_sregs;
int sregs [MONO_MAX_SRC_REGS];
- spec = INS_INFO (ins->opcode);
-
num_sregs = mono_inst_get_src_registers (ins, sregs);
for (i = 0; i < num_sregs; ++i) {
if (sregs [i] == dreg)
/* Unlink target bblocks */
for (i = 0; i < table->table_size; ++i) {
- if (i != idx) {
+ if (table->table [i] != table->table [idx]) {
remove_bb_from_phis (cfg, bb, table->table [i]);
mono_unlink_bblock (cfg, bb, table->table [i]);
}