diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-10-15 18:51:26 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-10-15 20:03:12 +0300 |
commit | f3dffff940df0ec1671604fc781b8a75c072e317 (patch) | |
tree | c03c0a9b05697f3d615f2262a6d096fcbcca6a89 | |
parent | 491223d81b8b314ab1c6634278e7b96117450364 (diff) | |
download | llvm-toolchain-5.0-master.tar.gz |
-rw-r--r-- | debian/patches/dyson-math.patch | 19 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/dyson-math.patch b/debian/patches/dyson-math.patch new file mode 100644 index 0000000..8f34a87 --- /dev/null +++ b/debian/patches/dyson-math.patch @@ -0,0 +1,19 @@ +Description: call of overloaded ‘ceil(long unsigned int)’ is ambiguous, + call of overloaded ‘sqrt(long unsigned int)’ is ambiguous +Index: llvm-toolchain-5.0-5.0/tools/polly/lib/Transform/ScheduleOptimizer.cpp +=================================================================== +--- llvm-toolchain-5.0-5.0.orig/tools/polly/lib/Transform/ScheduleOptimizer.cpp ++++ llvm-toolchain-5.0-5.0/tools/polly/lib/Transform/ScheduleOptimizer.cpp +@@ -971,9 +971,9 @@ getMicroKernelParams(const llvm::TargetT + auto Nvec = RegisterBitwidth / ElementSize; + if (Nvec == 0) + Nvec = 2; +- int Nr = +- ceil(sqrt(Nvec * LatencyVectorFma * ThroughputVectorFma) / Nvec) * Nvec; +- int Mr = ceil(Nvec * LatencyVectorFma * ThroughputVectorFma / Nr); ++ double _tmp = Nvec * LatencyVectorFma * ThroughputVectorFma; ++ int Nr = ceil(sqrt(_tmp) / Nvec) * Nvec; ++ int Mr = ceil(_tmp / Nr); + return {Mr, Nr}; + } + diff --git a/debian/patches/series b/debian/patches/series index 4872b71..b85799d 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -48,3 +48,4 @@ disable-error-xray.diff lldb-disable-swig-error.diff dyson-coreutils.patch dyson-gnu-ld.patch +dyson-math.patch |