summaryrefslogtreecommitdiff
path: root/src/irtools.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/irtools.cc')
-rw-r--r--src/irtools.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/irtools.cc b/src/irtools.cc
index 784f6e4..e5666ce 100644
--- a/src/irtools.cc
+++ b/src/irtools.cc
@@ -214,20 +214,13 @@ bool is_dependence_valid(ir_tree_node *src_node, ir_tree_node *dst_node,
last_dim = itn->payload;
}
- if (last_dim == -1)
- return true;
-
for (int i = 0; i <= last_dim; i++) {
if (dv.lbounds[i] > 0)
return true;
else if (dv.lbounds[i] < 0)
return false;
}
-
- if (before)
- return true;
- else
- return false;
+ return before;
}
return true;