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:
e29d9e4
)
isl_map.c: order_divs: swap with correct div
author
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 6 Jun 2009 09:12:57 +0000
(11:12 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 7 Jun 2009 09:25:25 +0000
(11:25 +0200)
The bug in the original code could result in a div being swapped
with itself, in turn resulting in an infinite loop.
isl_map.c
patch
|
blob
|
history
diff --git
a/isl_map.c
b/isl_map.c
index
818d462
..
7ee8767
100644
(file)
--- a/
isl_map.c
+++ b/
isl_map.c
@@
-3581,7
+3581,7
@@
static struct isl_basic_map *order_divs(struct isl_basic_map *bmap)
bmap->n_div-i);
if (pos == -1)
continue;
- swap_div(bmap, i, pos);
+ swap_div(bmap, i,
i +
pos);
--i;
}
return bmap;