Re: [PATCH][ARM] Improve Thumb allocation order

2016-12-15 Thread Richard Earnshaw (lists)
On 30/11/16 17:32, Wilco Dijkstra wrote: > Thumb uses a special register allocation order to increase the use of low > registers. Oddly enough, LR appears before R12, which means that LR must > be saved and restored even if R12 is available. Swapping R12 and LR means > this simple example now use

Re: [PATCH][ARM] Improve Thumb allocation order

2016-12-14 Thread Wilco Dijkstra
  ping From: Wilco Dijkstra Sent: 30 November 2016 17:32 To: GCC Patches Cc: nd Subject: [PATCH][ARM] Improve Thumb allocation order     Thumb uses a special register allocation order to increase the use of low registers.  Oddly enough, LR appears before R12, which means that LR must be

Re: [PATCH][ARM] Improve Thumb allocation order

2016-12-06 Thread Wilco Dijkstra
ping From: Wilco Dijkstra Sent: 30 November 2016 17:32 To: GCC Patches Cc: nd Subject: [PATCH][ARM] Improve Thumb allocation order   Thumb uses a special register allocation order to increase the use of low registers.  Oddly enough, LR appears before R12, which means that LR must be saved

[PATCH][ARM] Improve Thumb allocation order

2016-11-30 Thread Wilco Dijkstra
Thumb uses a special register allocation order to increase the use of low registers. Oddly enough, LR appears before R12, which means that LR must be saved and restored even if R12 is available. Swapping R12 and LR means this simple example now uses R12 as a temporary (just like ARM): int f(long