mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 21:30:09 +01:00
nv50/ir/ra: Allocate registers for function arguments.
This commit is contained in:
parent
530ff61ba7
commit
a539785187
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue