[libc-commits] [libc] [libc] Enable intermediate computation in float for baremetal (PR #163622)
via libc-commits
libc-commits at lists.llvm.org
Wed Oct 15 12:58:35 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Petr Hosek (petrhosek)
<details>
<summary>Changes</summary>
This can improve performance on 32-bit baremetal targets.
---
Full diff: https://github.com/llvm/llvm-project/pull/163622.diff
1 Files Affected:
- (modified) libc/config/baremetal/config.json (+1-1)
``````````diff
diff --git a/libc/config/baremetal/config.json b/libc/config/baremetal/config.json
index 796b1d8ed1398..ffb4fe6487fdc 100644
--- a/libc/config/baremetal/config.json
+++ b/libc/config/baremetal/config.json
@@ -36,7 +36,7 @@
},
"math": {
"LIBC_CONF_MATH_OPTIMIZATIONS": {
- "value": "(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES)"
+ "value": "(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES | LIBC_MATH_INTERMEDIATE_COMP_IN_FLOAT)"
}
},
"general": {
``````````
</details>
https://github.com/llvm/llvm-project/pull/163622
More information about the libc-commits
mailing list