aboutsummaryrefslogtreecommitdiffstats
path: root/cse.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-23 14:06:48 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:04:36 -0700
commit4d132bc09f66a066eec24ddf3efa61a848b67adb (patch)
tree8206fe419345df5a217d1e79b3792a554a29cbcd /cse.c
parent1cad98cde3dcdc7bc6ac28bb5c5d47c877ed7023 (diff)
downloadsparse-4d132bc09f66a066eec24ddf3efa61a848b67adb.tar.gz
sparse-4d132bc09f66a066eec24ddf3efa61a848b67adb.tar.xz
sparse-4d132bc09f66a066eec24ddf3efa61a848b67adb.zip
Pack the phi-list after removing duplicates.
Diffstat (limited to 'cse.c')
-rw-r--r--cse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cse.c b/cse.c
index 165fe55..708cc9f 100644
--- a/cse.c
+++ b/cse.c
@@ -58,6 +58,9 @@ static unsigned long clean_up_phi(struct instruction *insn)
hash += hashval(phi->pseudo);
hash += hashval(phi->source);
} END_FOR_EACH_PTR(phi);
+
+ /* Whenever we delete pointers, we may have to pack the end result */
+ PACK_PTR_LIST(&insn->phi_list);
return hash;
}