[PATCH 03/12] mode-switching: Avoid quadractic list operation

2023-11-05 Thread Richard Sandiford
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. (optimi

Re: [PATCH 03/12] mode-switching: Avoid quadractic list operation

2023-11-06 Thread Jeff Law
On 11/5/23 11:47, Richard Sandiford wrote: 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