Added phi elimination code

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1265 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ruchira Sasanka
2001-11-12 14:45:33 +00:00
parent b2490fc4fb
commit 67a463ac04
3 changed files with 55 additions and 13 deletions

View File

@@ -943,11 +943,12 @@ ForwardOperand(InstructionNode* treeNode,
}
void
void UltraSparcInstrInfo::
CreateCopyInstructionsByType(const TargetMachine& target,
Value* src,
Instruction* dest,
vector<MachineInstr*>& minstrVec)
vector<MachineInstr*>& minstrVec) const
{
bool loadConstantToReg = false;
@@ -1004,6 +1005,7 @@ CreateCopyInstructionsByType(const TargetMachine& target,
}
//******************* Externally Visible Functions *************************/
@@ -2048,7 +2050,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot,
else
{
vector<MachineInstr*> minstrVec;
CreateCopyInstructionsByType(target,
target.getInstrInfo().CreateCopyInstructionsByType(target,
subtreeRoot->getInstruction()->getOperand(forwardOperandNum),
subtreeRoot->getInstruction(), minstrVec);
assert(minstrVec.size() > 0);