From: Francisco Jerez Date: Tue, 15 Nov 2011 16:24:18 +0000 (+0100) Subject: nv50/ir/ra: Allocate registers for function arguments. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5397851870d3a9969b2b864c849ba209ef9b0f7;p=mesa.git nv50/ir/ra: Allocate registers for function arguments. --- diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp index 3f825461956..f13335f7d28 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp @@ -664,6 +664,12 @@ checkList(DLList &list) void RegAlloc::collectLValues(DLList &list, bool assignedOnly) { + for (std::deque::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);