[polly] r229476 - Update isl to 0ae2b02 "isl_seq_combine: optimize for common case"
Tobias Grosser
tobias at grosser.es
Mon Feb 16 23:39:25 PST 2015
Author: grosser
Date: Tue Feb 17 01:39:25 2015
New Revision: 229476
URL: http://llvm.org/viewvc/llvm-project?rev=229476&view=rev
Log:
Update isl to 0ae2b02 "isl_seq_combine: optimize for common case"
This is just a single commit that includes a performance optimization that
should improve dependence analysis time. Our performance bots should measure
this difference.
Modified:
polly/trunk/lib/External/isl/isl_seq.c
Modified: polly/trunk/lib/External/isl/isl_seq.c
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/External/isl/isl_seq.c?rev=229476&r1=229475&r2=229476&view=diff
==============================================================================
--- polly/trunk/lib/External/isl/isl_seq.c (original)
+++ polly/trunk/lib/External/isl/isl_seq.c Tue Feb 17 01:39:25 2015
@@ -107,6 +107,14 @@ void isl_seq_combine(isl_int *dst, isl_i
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]);
More information about the llvm-commits
mailing list