projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c0e009
)
Update isl to 0ae2b02 "isl_seq_combine: optimize for common case"
author
Tobias Grosser
<tobias@grosser.es>
Tue, 17 Feb 2015 07:39:25 +0000
(07:39 +0000)
committer
Tobias Grosser
<tobias@grosser.es>
Tue, 17 Feb 2015 07:39:25 +0000
(07:39 +0000)
This is just a single commit that includes a performance optimization that
should improve dependence analysis time. Our performance bots should measure
this difference.
llvm-svn: 229476
polly/lib/External/isl/isl_seq.c
patch
|
blob
|
history
diff --git
a/polly/lib/External/isl/isl_seq.c
b/polly/lib/External/isl/isl_seq.c
index
fbbc26f
..
2159464
100644
(file)
--- a/
polly/lib/External/isl/isl_seq.c
+++ b/
polly/lib/External/isl/isl_seq.c
@@
-107,6
+107,14
@@
void isl_seq_combine(isl_int *dst, isl_int m1, isl_int *src1,
int i;
isl_int tmp;
+ if (dst == src1 && isl_int_is_one(m1)) {
+ if (isl_int_is_zero(m2))
+ return;
+ for (i = 0; i < len; ++i)
+ isl_int_addmul(src1[i], m2, src2[i]);
+ return;
+ }
+
isl_int_init(tmp);
for (i = 0; i < len; ++i) {
isl_int_mul(tmp, m1, src1[i]);