[PATCH] D67442: [Polly] Fix lib/Transform/ScheduleOptimizer.cpp compilation on Solaris

Rainer Orth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 13 01:45:18 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL371825: [Polly] Fix lib/Transform/ScheduleOptimizer.cpp compilation on Solaris (authored by ro, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D67442?vs=219697&id=220049#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67442/new/

https://reviews.llvm.org/D67442

Files:
  polly/trunk/lib/Transform/ScheduleOptimizer.cpp


Index: polly/trunk/lib/Transform/ScheduleOptimizer.cpp
===================================================================
--- polly/trunk/lib/Transform/ScheduleOptimizer.cpp
+++ polly/trunk/lib/Transform/ScheduleOptimizer.cpp
@@ -910,9 +910,10 @@
   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);
+  int Nr = ceil(sqrt((double)(Nvec * LatencyVectorFma * ThroughputVectorFma)) /
+                Nvec) *
+           Nvec;
+  int Mr = ceil((double)(Nvec * LatencyVectorFma * ThroughputVectorFma / Nr));
   return {Mr, Nr};
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67442.220049.patch
Type: text/x-patch
Size: 719 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190913/50792606/attachment.bin>


More information about the llvm-commits mailing list