mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user