From a5397851870d3a9969b2b864c849ba209ef9b0f7 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Tue, 15 Nov 2011 17:24:18 +0100 Subject: [PATCH] nv50/ir/ra: Allocate registers for function arguments. --- src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp index 3f82546..f13335f 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); -- 2.7.4