aboutsummaryrefslogtreecommitdiffstats
path: root/cse.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-23 19:47:56 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:04:38 -0700
commit294c7f866d037408e66b578c8552cdc0d4c5ce00 (patch)
tree9c1dcc7775fa0ec3165ce93d5810b75bfb512d88 /cse.c
parentec0abd07637bd9075d13edc1ae5adccd7697edca (diff)
downloadsparse-294c7f866d037408e66b578c8552cdc0d4c5ce00.tar.gz
sparse-294c7f866d037408e66b578c8552cdc0d4c5ce00.tar.xz
sparse-294c7f866d037408e66b578c8552cdc0d4c5ce00.zip
Oops. Don't try to CSE the dead instructions.
Diffstat (limited to 'cse.c')
-rw-r--r--cse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cse.c b/cse.c
index 7dd8c9d..6e4875f 100644
--- a/cse.c
+++ b/cse.c
@@ -359,6 +359,8 @@ repeat:
last = NULL;
FOR_EACH_PTR(*list, insn) {
+ if (!insn->bb)
+ continue;
if (last) {
if (!insn_compare(last, insn)) {
struct instruction *def = try_to_cse(ep, last, insn);