diff options
author | Richard Biener <rguenther@suse.de> | 2020-02-14 08:32:53 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-02-14 08:32:53 +0100 |
commit | 258bf0ee3748d4354e13daf00f02266cafa96389 (patch) | |
tree | a6f6a7933d4d14869687dcf606e1f66fc1c23d97 /opcodes/ia64-gen.c | |
parent | d4059b1d6cb65296134ca9f3497249e84acb622e (diff) | |
download | gdb-258bf0ee3748d4354e13daf00f02266cafa96389.zip gdb-258bf0ee3748d4354e13daf00f02266cafa96389.tar.gz gdb-258bf0ee3748d4354e13daf00f02266cafa96389.tar.bz2 |
[gdb] Speedup lnp_state_machine::handle_special_opcode
I see for some program at gdb startup:
...
Samples: 102K of event 'cycles:pu', Event count (approx.): 91710925103
Overhead Command Shared Object Symbol
15.21% gdb gdb [.]
lnp_state_machine::handle_special
...
where the divisions are the places we stall. The following
micro-optimizes things but it smells like m_line_header->line_range
is constant, likewise probably m_line_header->maximum_ops_per_instruction
so eventually the divisions could be avoided completely with some
lookup table.
Well. Micro-optimizing with this patch improves things
(don't expect [load] CSE over the gdbarch_adjust_dwarf2_line call).
Build and reg-tested on x86_64-linux.
gdb/ChangeLog:
2020-02-14 Richard Biener <rguenther@suse.de>
* dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
on expression with division operators.
Diffstat (limited to 'opcodes/ia64-gen.c')
0 files changed, 0 insertions, 0 deletions