nv50/ir/ra: Allocate registers for function arguments.

This commit is contained in:
Francisco Jerez 2011-11-15 17:24:18 +01:00 committed by Christoph Bumiller
parent 530ff61ba7
commit a539785187

View file

@ -664,6 +664,12 @@ checkList(DLList &list)
void
RegAlloc::collectLValues(DLList &list, bool assignedOnly)
{
for (std::deque<ValueDef>::iterator it = func->ins.begin();
it != func->ins.end(); ++it) {
if (!assignedOnly || it->get()->reg.data.id >= 0)
insertOrderedTail(list, it->get());
}
for (int n = 0; n < insns.getSize(); ++n) {
Instruction *i = insnBySerial(n);