From 1ed507ca46d721d9cab1bb036dc14b10c8a2a37b Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Tue, 26 Feb 2013 21:05:03 +0100 Subject: [PATCH] nv50/ir/opt: CALLs cannot load --- src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.30.2