summaryrefslogtreecommitdiff
path: root/cse.c
diff options
context:
space:
mode:
Diffstat (limited to 'cse.c')
-rw-r--r--cse.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cse.c b/cse.c
index 47cd78f..6835aac 100644
--- a/cse.c
+++ b/cse.c
@@ -20,8 +20,6 @@
#define INSN_HASH_SIZE 65536
static struct instruction_list *insn_hash_table[INSN_HASH_SIZE];
-#define hashval(x) ((unsigned long)(x))
-
int repeat_phase, merge_phi_sources;
static int phi_compare(pseudo_t phi1, pseudo_t phi2)
@@ -96,7 +94,7 @@ static void clean_up_one_instruction(struct basic_block *bb, struct instruction
}
case OP_PHISOURCE:
- hash += hashval(insn->src1);
+ hash += hashval(insn->phi_src);
hash += hashval(insn->bb);
break;
@@ -209,7 +207,7 @@ static int insn_compare(const void *_i1, const void *_i2)
return phi_list_compare(i1->phi_list, i2->phi_list);
case OP_PHISOURCE:
- if (i1->src1 != i2->src1)
+ if (i1->phi_src != i2->phi_src)
return i1->src1 < i2->src1 ? -1 : 1;
if (i1->bb != i2->bb)
return i1->bb < i2->bb ? -1 : 1;