diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2023-11-11 17:28:55 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2023-11-11 17:28:55 +0000 |
commit | 174ee5115a3004d3664165e9d619535b579111d4 (patch) | |
tree | e023c4bd67aada3cd0160b0f5609c3aa87488925 /gcc/gimple-range-cache.cc | |
parent | 3cd3a09b3f91a1d023cb180763d40598d6bb274b (diff) | |
download | gcc-174ee5115a3004d3664165e9d619535b579111d4.zip gcc-174ee5115a3004d3664165e9d619535b579111d4.tar.gz gcc-174ee5115a3004d3664165e9d619535b579111d4.tar.bz2 |
mode-switching: Avoid quadractic list operation
add_seginfo chained insn information to the end of a list
by starting at the head of the list. This patch avoids the
quadraticness by keeping track of the tail pointer.
gcc/
* mode-switching.cc (add_seginfo): Replace head pointer with
a pointer to the tail pointer.
(optimize_mode_switching): Update calls accordingly.
Diffstat (limited to 'gcc/gimple-range-cache.cc')
0 files changed, 0 insertions, 0 deletions