aboutsummaryrefslogtreecommitdiffstats
path: root/cse.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-24 09:48:22 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:04:42 -0700
commit91766f956daf544e3ba13e0f5d4c449074037f8e (patch)
tree1200e0e4880dbfae65183e96b7b39b70649975ad /cse.c
parent76b1ba754f31ef878d2db1e5d14fc45a9d02fd7a (diff)
downloadsparse-91766f956daf544e3ba13e0f5d4c449074037f8e.tar.gz
sparse-91766f956daf544e3ba13e0f5d4c449074037f8e.tar.xz
sparse-91766f956daf544e3ba13e0f5d4c449074037f8e.zip
We need to pack the phi-list even if we simplify the phi
instruction.
Diffstat (limited to 'cse.c')
-rw-r--r--cse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cse.c b/cse.c
index a0ce997..3155e5e 100644
--- a/cse.c
+++ b/cse.c
@@ -66,6 +66,9 @@ static unsigned long clean_up_phi(struct instruction *insn)
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);
+
if (same) {
pseudo_t pseudo = last ? last->pseudo : VOID;
convert_instruction_target(insn, pseudo);
@@ -74,8 +77,6 @@ static unsigned long clean_up_phi(struct instruction *insn)
return hash;
}
- /* Whenever we delete pointers, we may have to pack the end result */
- PACK_PTR_LIST(&insn->phi_list);
return hash;
}