aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-11-20 13:47:37 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-20 13:47:37 -0800
commit027cbf98ff7a6f3a9447f00452d199d33a35a722 (patch)
tree8addaf9099205c7b1149b919f867c62548f9f5a8 /liveness.c
parentEvaluate expressions fully when doing type comparisons on case statements (diff)
downloadsparse-027cbf98ff7a6f3a9447f00452d199d33a35a722.tar.gz
sparse-027cbf98ff7a6f3a9447f00452d199d33a35a722.tar.bz2
sparse-027cbf98ff7a6f3a9447f00452d199d33a35a722.zip
Remove totally bogus phi-source liveness thing.
Thanks to Luc Van Oostenryck for pointing out a trivial example of something that does totally the wrong thing with that code. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'liveness.c')
-rw-r--r--liveness.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/liveness.c b/liveness.c
index c1387fe..8b0dfd8 100644
--- a/liveness.c
+++ b/liveness.c
@@ -331,19 +331,6 @@ static void track_pseudo_death_bb(struct basic_block *bb)
if (!insn->bb)
continue;
- /*
- * A "def" of a pseudo removes it from the liveness
- * list. However, we only bother doing that for
- * phi-nodes, since no other pseudos should ever
- * be even used before they are def'ed.
- */
- if (insn->opcode == OP_PHISOURCE) {
- struct instruction *phi;
- FOR_EACH_PTR(insn->phi_users, phi) {
- remove_pseudo(live_list, phi->target);
- } END_FOR_EACH_PTR(phi);
- }
-
dead_list = NULL;
track_instruction_usage(bb, insn, death_def, death_use);
if (dead_list) {