aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-12-07 14:08:47 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:05:35 -0700
commit2d8d9bda591831a9d0acc478f7d3b8fa35032b6e (patch)
tree3d14bcc9b65c1f94ad0036d45668ba9f89801862 /simplify.c
parentDon't output code for static/toplevel symbols. (diff)
downloadsparse-2d8d9bda591831a9d0acc478f7d3b8fa35032b6e.tar.gz
sparse-2d8d9bda591831a9d0acc478f7d3b8fa35032b6e.tar.bz2
sparse-2d8d9bda591831a9d0acc478f7d3b8fa35032b6e.zip
Make OP_PHISOURCE track the OP_PHI instructions that it defines.
This allows us to always see which pseudos are nonlocally affected by the phi source. We can only do this after the instruction flow is fixed, together with the OP_DEATHNOTE phase.
Diffstat (limited to 'simplify.c')
-rw-r--r--simplify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/simplify.c b/simplify.c
index 2d14b9d..2b4b3e2 100644
--- a/simplify.c
+++ b/simplify.c
@@ -662,7 +662,7 @@ int simplify_instruction(struct instruction *insn)
}
return clean_up_phi(insn);
case OP_PHISOURCE:
- if (dead_insn(insn, &insn->src1, NULL, NULL))
+ if (dead_insn(insn, &insn->phi_src, NULL, NULL))
return REPEAT_CSE;
break;
case OP_SEL: