[llvm] [CalcSpillWeights] Avoid x87 excess precision influencing weight result (PR #100165)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 08:54:12 PDT 2024


================
@@ -770,6 +770,14 @@ std::enable_if_t<std::is_signed_v<T>, T> MulOverflow(T X, T Y, T &Result) {
 #endif
 }
 
+/// Type to force float point values onto the stack, so that x86 doesn't add
+/// hidden precision, avoiding rounding differences on various platforms.
+#if defined(__i386__) || defined(_M_IX86)
----------------
arsenm wrote:

Not sure this is the exact condition but ok 

https://github.com/llvm/llvm-project/pull/100165


More information about the llvm-commits mailing list