nv50/ir/ra: Allocate registers for function arguments.
This commit is contained in:
committed by
Christoph Bumiller
parent
530ff61ba7
commit
a539785187
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user