aboutsummaryrefslogtreecommitdiff
path: root/flow.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-27 00:55:50 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:05:03 -0700
commit14781fa1f7d326f970e075612c5e585b2df8d0ca (patch)
treef6c03daa2331c8be91d8917e3a792cb9edf83e11 /flow.c
parentTeach 'memop' simplification about offsetting. (diff)
downloadsparse-14781fa1f7d326f970e075612c5e585b2df8d0ca.tar.gz
sparse-14781fa1f7d326f970e075612c5e585b2df8d0ca.tar.bz2
sparse-14781fa1f7d326f970e075612c5e585b2df8d0ca.zip
Nonlocal memops are non-determinedly dominated by the entry.
Diffstat (limited to 'flow.c')
-rw-r--r--flow.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/flow.c b/flow.c
index 25c9df2..03ecea6 100644
--- a/flow.c
+++ b/flow.c
@@ -218,6 +218,9 @@ static int find_dominating_parents(pseudo_t pseudo, struct instruction *insn,
{
struct basic_block *parent;
+ if (!bb->parents)
+ return !!local;
+
if (bb_list_size(bb->parents) > 1)
loads = 0;
FOR_EACH_PTR(bb->parents, parent) {