From: Christoph Bumiller Date: Tue, 26 Feb 2013 20:05:03 +0000 (+0100) Subject: nv50/ir/opt: CALLs cannot load X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ed507ca46d721d9cab1bb036dc14b10c8a2a37b;p=mesa.git nv50/ir/opt: CALLs cannot load --- diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp index 6b3e5be3a78..cc298d5bad6 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp @@ -203,6 +203,9 @@ LoadPropagation::visit(BasicBlock *bb) for (Instruction *i = bb->getEntry(); i; i = next) { next = i->next; + if (i->op == OP_CALL) // calls have args as sources, they must be in regs + continue; + if (i->srcExists(1)) checkSwapSrc01(i);