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 6b3e5be3a78ab6216eb8123af6aa3e06d4d796d6..cc298d5bad6bce89d8ef26d011cb755ef52b5b33 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);