nv50/ir/opt: CALLs cannot load

This commit is contained in:
Christoph Bumiller 2013-02-26 21:05:03 +01:00
parent c893b94060
commit 1ed507ca46
1 changed files with 3 additions and 0 deletions

View 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);