forked from OSchip/llvm-project
Changed case 64 to make the first arg of phi a defintion
llvm-svn: 355
This commit is contained in:
parent
5715b56e65
commit
20429a47e5
|
@ -717,7 +717,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot,
|
|||
Instruction* phi = subtreeRoot->getInstruction();
|
||||
mvec[0] = new MachineInstr(PHI, 1 + phi->getNumOperands());
|
||||
mvec[0]->SetMachineOperand(0, MachineOperand::MO_VirtualRegister,
|
||||
subtreeRoot->getValue());
|
||||
subtreeRoot->getValue(), true);
|
||||
for (unsigned i=0, N=phi->getNumOperands(); i < N; i++)
|
||||
mvec[0]->SetMachineOperand(i+1, MachineOperand::MO_VirtualRegister,
|
||||
phi->getOperand(i));
|
||||
|
|
Loading…
Reference in New Issue