[PATCH] D119324: [MLIR][Presburger] Disambiguate call to floor

Rainer Orth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 13:02:24 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG91596755359e: [MLIR][Presburger] Disambiguate call to floor (authored by ro).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119324

Files:
  mlir/lib/Analysis/Presburger/Utils.cpp


Index: mlir/lib/Analysis/Presburger/Utils.cpp
===================================================================
--- mlir/lib/Analysis/Presburger/Utils.cpp
+++ mlir/lib/Analysis/Presburger/Utils.cpp
@@ -45,7 +45,7 @@
 
   // Normalize the dividend and the denominator.
   std::transform(dividend.begin(), dividend.end(), dividend.begin(),
-                 [gcd](int64_t &n) { return floor(n / gcd); });
+                 [gcd](int64_t &n) { return floor((double)(n / gcd)); });
   divisor /= gcd;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119324.407259.patch
Type: text/x-patch
Size: 504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220209/bb7eb316/attachment.bin>


More information about the llvm-commits mailing list