[all-commits] [llvm/llvm-project] 0f68dc: [APFloat] Inline static getters (#163794)
Yingwei Zheng via All-commits
all-commits at lists.llvm.org
Sat Oct 18 02:07:47 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0f68dc6cffd93954188f73bff8aced93aab63687
https://github.com/llvm/llvm-project/commit/0f68dc6cffd93954188f73bff8aced93aab63687
Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: 2025-10-18 (Sat, 18 Oct 2025)
Changed paths:
M llvm/include/llvm/ADT/APFloat.h
M llvm/lib/Support/APFloat.cpp
Log Message:
-----------
[APFloat] Inline static getters (#163794)
This patch exposes the declaration of fltSemantics to inline
PPCDoubleDouble() calls in the IEEEFloat/DoubleAPFloat dispatch.
It slightly improves the compile time:
https://llvm-compile-time-tracker.com/compare.php?from=f4359301c033694d36865c7560714164d2050240&to=68de94d77d5bd33603193e8769829345b18fbae3&stat=instructions:u
With https://github.com/llvm/llvm-project/pull/111544, the improvement
is more significant:
https://llvm-compile-time-tracker.com/compare.php?from=e438bae71d1fd55640d942b9ad795de2f60e44f2&to=04751477940890c092dc4edb74e284de8f746d5a&stat=instructions:u
Address comment
https://github.com/llvm/llvm-project/pull/111544#issuecomment-3405281695.
If breaking changes are allowed, we can encode all the properties of
fltSemantics within a 64-bit integer. Then we don't need `Semantics <->
const fltSemantic` conversion.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list