aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-12-04 23:11:28 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:05:29 -0700
commit549265119d65c943eba01800dde888a4e308b7b7 (patch)
tree9ad33237c02d8f834203c83e7ca86d69f3bdb5b1 /memops.c
parentNow that we track argument pseudo liveness, make (diff)
downloadsparse-549265119d65c943eba01800dde888a4e308b7b7.tar.gz
sparse-549265119d65c943eba01800dde888a4e308b7b7.tar.bz2
sparse-549265119d65c943eba01800dde888a4e308b7b7.zip
Oops. The "entry instruction" changes missed the check for the
entry basic block in memop dominators. This caused the dominator finding to totally misjudge a lot of non-local loads as having no dominators (or thinking they were being completely dominated by a store that just updated them).
Diffstat (limited to 'memops.c')
-rw-r--r--memops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memops.c b/memops.c
index 2781fad..669b920 100644
--- a/memops.c
+++ b/memops.c
@@ -26,7 +26,7 @@ static int find_dominating_parents(pseudo_t pseudo, struct instruction *insn,
* The entrypoint is special - it dominates all non-local
* pseudos, but no local ones.
*/
- if (bb == bb->ep->entry)
+ if (bb == bb->ep->entry->bb)
return !!local;
if (bb_list_size(bb->parents) > 1)