nv50/ir/opt: CALLs cannot load
This commit is contained in:
parent
c893b94060
commit
1ed507ca46
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue