projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9f95db
)
isl_tab_pip.c: context_gbr_detect_equalities: improve error handling
author
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 24 Mar 2013 09:20:24 +0000
(10:20 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 24 Mar 2013 09:20:24 +0000
(10:20 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_tab_pip.c
patch
|
blob
|
history
diff --git
a/isl_tab_pip.c
b/isl_tab_pip.c
index
4124f4b
..
16bae5a
100644
(file)
--- a/
isl_tab_pip.c
+++ b/
isl_tab_pip.c
@@
-3113,7
+3113,9
@@
static int context_gbr_detect_equalities(struct isl_context *context,
n_ineq = cgbr->tab->bmap->n_ineq;
cgbr->tab = isl_tab_detect_equalities(cgbr->tab, cgbr->cone);
- if (cgbr->tab && cgbr->tab->bmap->n_ineq > n_ineq)
+ if (!cgbr->tab)
+ return -1;
+ if (cgbr->tab->bmap->n_ineq > n_ineq)
propagate_equalities(cgbr, tab, n_ineq);
return 0;