[llvm] Constant Fold Logf128 calls (PR #84501)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 2 06:47:46 PDT 2024


================
@@ -1688,6 +1696,16 @@ class [[nodiscard]] APInt {
     return APInt(sizeof(float) * CHAR_BIT, llvm::bit_cast<uint32_t>(V));
   }
 
+#ifdef __FLOAT128__
+  static APInt longDoubleToBits(float128 V) {
----------------
arsenm wrote:

But why do you need to directly deal with float128? Just keep everything as APFloat in the compiler 

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


More information about the llvm-commits mailing list