aboutsummaryrefslogtreecommitdiffstats
path: root/cse.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-24 16:50:56 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:04:44 -0700
commite8c4c42deb77d8ffffd3c746a7a48aff9d53d79d (patch)
treef29feeef4f5afca3c982cbe006d0d20ee94f84c0 /cse.c
parentc484f3f7f5c683282990b87f71be4d8cf698b73b (diff)
downloadsparse-e8c4c42deb77d8ffffd3c746a7a48aff9d53d79d.tar.gz
sparse-e8c4c42deb77d8ffffd3c746a7a48aff9d53d79d.tar.xz
sparse-e8c4c42deb77d8ffffd3c746a7a48aff9d53d79d.zip
Clear phi list when killing a phi-node instruction
Diffstat (limited to 'cse.c')
-rw-r--r--cse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cse.c b/cse.c
index f01f643..9e83833 100644
--- a/cse.c
+++ b/cse.c
@@ -284,8 +284,10 @@ static void clean_up_one_instruction(struct basic_block *bb, struct instruction
/* Other */
case OP_PHI:
- if (dead_insn(insn, VOID, VOID))
+ if (dead_insn(insn, VOID, VOID)) {
+ clear_phi(insn);
return;
+ }
hash += clean_up_phi(insn);
break;