RE: Register allocation: caller-save vs spilling

2014-09-04 Thread Wilco Dijkstra
ailto:wdijk...@arm.com] > Sent: 27 August 2014 17:25 > To: 'gcc@gcc.gnu.org' > Subject: Register allocation: caller-save vs spilling > > Hi, > > I'm investigating various register allocation inefficiencies. The first thing > that stands out > is that GCC bot

Register allocation: caller-save vs spilling

2014-08-27 Thread Wilco Dijkstra
Hi, I'm investigating various register allocation inefficiencies. The first thing that stands out is that GCC both supports caller-saves as well as spilling. Spilling seems to spill all definitions and all uses of a liverange. This means you often end up with multiple reloads close together, wh