> But doesn't that imply that a hard register is getting inserted into > the array more than once. While I don't see explicit code to prevent > this, I'm having a hard time seeing how that can actually happen.
The test case is qsort.c from newlib. I added some runtime checks to caller-saves and it looks like there are at least two pseudos assigned to the same hard reg, so the hard reg gets added more than once. Is this normal?