aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-range-cache.cc
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2023-11-11 17:28:55 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2023-11-11 17:28:55 +0000
commit174ee5115a3004d3664165e9d619535b579111d4 (patch)
treee023c4bd67aada3cd0160b0f5609c3aa87488925 /gcc/gimple-range-cache.cc
parent3cd3a09b3f91a1d023cb180763d40598d6bb274b (diff)
downloadgcc-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