diff options
author | Koakuma <koachan@protonmail.com> | 2024-01-16 22:46:39 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 22:46:39 +0700 |
commit | 118d4234ac6d0893974d324cdb738a1e0255c08d (patch) | |
tree | f7b049b37e24f21d4fb2ec496df26066910501d2 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | |
parent | bd26ce47c820858856bd33f20b0c606973155f51 (diff) | |
download | llvm-118d4234ac6d0893974d324cdb738a1e0255c08d.zip llvm-118d4234ac6d0893974d324cdb738a1e0255c08d.tar.gz llvm-118d4234ac6d0893974d324cdb738a1e0255c08d.tar.bz2 |
[SPARC] Prefer RDPC over CALL to implement GETPCX for 64-bit target
On 64-bit target, prefer using RDPC over CALL to get the value of %pc.
This is faster on modern processors (Niagara T1 and newer) and avoids
polluting the processor's predictor state.
The old behavior of using a fake CALL is still done when tuning for
classic UltraSPARC processors, since RDPC is much slower there.
A quick pgbench test on a SPARC T4 shows about 2% speedup on SELECT
loads, and about 7% speedup on INSERT/UPDATE loads.
Reviewed By: @s-barannikov
Github PR: https://github.com/llvm/llvm-project/pull/78280
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
0 files changed, 0 insertions, 0 deletions