diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-10-12 14:24:52 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-10-12 14:24:52 -0600 |
commit | dffb489fda5e6224970a0af6e49f07243c26541d (patch) | |
tree | 681d631d3c6f52826206b12b3c89c2c21854e64e /src/irtools.cc | |
parent | cbe925bd7264c4e14681db16a14805670fd07c71 (diff) | |
download | chill-dffb489fda5e6224970a0af6e49f07243c26541d.tar.gz chill-dffb489fda5e6224970a0af6e49f07243c26541d.tar.bz2 chill-dffb489fda5e6224970a0af6e49f07243c26541d.zip |
fixes for is_dependence_valid
Diffstat (limited to 'src/irtools.cc')
-rw-r--r-- | src/irtools.cc | 9 |
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; |