diff options
author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2025-10-18 17:07:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-18 17:07:25 +0800 |
commit | 0f68dc6cffd93954188f73bff8aced93aab63687 (patch) | |
tree | bb8db8bba873719ca93293bfd477a95e8e1a16e2 /llvm/lib/Support/UnicodeNameToCodepoint.cpp | |
parent | eb5de5c60cbdae063880420955fd4f21b4704337 (diff) | |
download | llvm-0f68dc6cffd93954188f73bff8aced93aab63687.zip llvm-0f68dc6cffd93954188f73bff8aced93aab63687.tar.gz llvm-0f68dc6cffd93954188f73bff8aced93aab63687.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/Support/UnicodeNameToCodepoint.cpp')
0 files changed, 0 insertions, 0 deletions