On Mon, 2011-11-07 at 09:27 +0100, Michael Matz wrote: > One source of same valued pseudos are copies, and copy coalescing we (of > course) do implement.
While digging through ira-color.c tracking down an IRA shuffle copy issue, I noticed we only seem to do real copy coalescing for spilled pseudos. It seems we rely on coloring to try and assign the same hard reg to pseudos connected by a copy so the copy can be removed as a nop. Looking at all the code used to do the cost preferencing to achieve that, I'm guessing just coalescing them would be a lot easier. Peter