nv50/ir/opt: CALLs cannot load
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 26 Feb 2013 20:05:03 +0000 (21:05 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 12 Mar 2013 11:55:35 +0000 (12:55 +0100)
src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp

index 6b3e5be..cc298d5 100644 (file)
@@ -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);