mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-21 19:48:46 +00:00
Minor code simplifications.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106286 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
03c3dc7b68
commit
927f866105
@ -437,8 +437,7 @@ MachineBasicBlock *SelectionDAGISel::CodeGenAndEmitDAG(MachineBasicBlock *BB) {
|
|||||||
BlockName = MF->getFunction()->getNameStr() + ":" +
|
BlockName = MF->getFunction()->getNameStr() + ":" +
|
||||||
BB->getBasicBlock()->getNameStr();
|
BB->getBasicBlock()->getNameStr();
|
||||||
|
|
||||||
DEBUG(dbgs() << "Initial selection DAG:\n");
|
DEBUG(dbgs() << "Initial selection DAG:\n"; CurDAG->dump());
|
||||||
DEBUG(CurDAG->dump());
|
|
||||||
|
|
||||||
if (ViewDAGCombine1) CurDAG->viewGraph("dag-combine1 input for " + BlockName);
|
if (ViewDAGCombine1) CurDAG->viewGraph("dag-combine1 input for " + BlockName);
|
||||||
|
|
||||||
@ -448,8 +447,7 @@ MachineBasicBlock *SelectionDAGISel::CodeGenAndEmitDAG(MachineBasicBlock *BB) {
|
|||||||
CurDAG->Combine(Unrestricted, *AA, OptLevel);
|
CurDAG->Combine(Unrestricted, *AA, OptLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(dbgs() << "Optimized lowered selection DAG:\n");
|
DEBUG(dbgs() << "Optimized lowered selection DAG:\n"; CurDAG->dump());
|
||||||
DEBUG(CurDAG->dump());
|
|
||||||
|
|
||||||
// Second step, hack on the DAG until it only uses operations and types that
|
// Second step, hack on the DAG until it only uses operations and types that
|
||||||
// the target supports.
|
// the target supports.
|
||||||
@ -462,8 +460,7 @@ MachineBasicBlock *SelectionDAGISel::CodeGenAndEmitDAG(MachineBasicBlock *BB) {
|
|||||||
Changed = CurDAG->LegalizeTypes();
|
Changed = CurDAG->LegalizeTypes();
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(dbgs() << "Type-legalized selection DAG:\n");
|
DEBUG(dbgs() << "Type-legalized selection DAG:\n"; CurDAG->dump());
|
||||||
DEBUG(CurDAG->dump());
|
|
||||||
|
|
||||||
if (Changed) {
|
if (Changed) {
|
||||||
if (ViewDAGCombineLT)
|
if (ViewDAGCombineLT)
|
||||||
@ -476,8 +473,8 @@ MachineBasicBlock *SelectionDAGISel::CodeGenAndEmitDAG(MachineBasicBlock *BB) {
|
|||||||
CurDAG->Combine(NoIllegalTypes, *AA, OptLevel);
|
CurDAG->Combine(NoIllegalTypes, *AA, OptLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(dbgs() << "Optimized type-legalized selection DAG:\n");
|
DEBUG(dbgs() << "Optimized type-legalized selection DAG:\n";
|
||||||
DEBUG(CurDAG->dump());
|
CurDAG->dump());
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -501,8 +498,8 @@ MachineBasicBlock *SelectionDAGISel::CodeGenAndEmitDAG(MachineBasicBlock *BB) {
|
|||||||
CurDAG->Combine(NoIllegalOperations, *AA, OptLevel);
|
CurDAG->Combine(NoIllegalOperations, *AA, OptLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(dbgs() << "Optimized vector-legalized selection DAG:\n");
|
DEBUG(dbgs() << "Optimized vector-legalized selection DAG:\n";
|
||||||
DEBUG(CurDAG->dump());
|
CurDAG->dump());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ViewLegalizeDAGs) CurDAG->viewGraph("legalize input for " + BlockName);
|
if (ViewLegalizeDAGs) CurDAG->viewGraph("legalize input for " + BlockName);
|
||||||
@ -512,8 +509,7 @@ MachineBasicBlock *SelectionDAGISel::CodeGenAndEmitDAG(MachineBasicBlock *BB) {
|
|||||||
CurDAG->Legalize(OptLevel);
|
CurDAG->Legalize(OptLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(dbgs() << "Legalized selection DAG:\n");
|
DEBUG(dbgs() << "Legalized selection DAG:\n"; CurDAG->dump());
|
||||||
DEBUG(CurDAG->dump());
|
|
||||||
|
|
||||||
if (ViewDAGCombine2) CurDAG->viewGraph("dag-combine2 input for " + BlockName);
|
if (ViewDAGCombine2) CurDAG->viewGraph("dag-combine2 input for " + BlockName);
|
||||||
|
|
||||||
@ -523,8 +519,7 @@ MachineBasicBlock *SelectionDAGISel::CodeGenAndEmitDAG(MachineBasicBlock *BB) {
|
|||||||
CurDAG->Combine(NoIllegalOperations, *AA, OptLevel);
|
CurDAG->Combine(NoIllegalOperations, *AA, OptLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(dbgs() << "Optimized legalized selection DAG:\n");
|
DEBUG(dbgs() << "Optimized legalized selection DAG:\n"; CurDAG->dump());
|
||||||
DEBUG(CurDAG->dump());
|
|
||||||
|
|
||||||
if (OptLevel != CodeGenOpt::None)
|
if (OptLevel != CodeGenOpt::None)
|
||||||
ComputeLiveOutVRegInfo();
|
ComputeLiveOutVRegInfo();
|
||||||
@ -538,8 +533,7 @@ MachineBasicBlock *SelectionDAGISel::CodeGenAndEmitDAG(MachineBasicBlock *BB) {
|
|||||||
DoInstructionSelection();
|
DoInstructionSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(dbgs() << "Selected selection DAG:\n");
|
DEBUG(dbgs() << "Selected selection DAG:\n"; CurDAG->dump());
|
||||||
DEBUG(CurDAG->dump());
|
|
||||||
|
|
||||||
if (ViewSchedDAGs) CurDAG->viewGraph("scheduler input for " + BlockName);
|
if (ViewSchedDAGs) CurDAG->viewGraph("scheduler input for " + BlockName);
|
||||||
|
|
||||||
@ -784,8 +778,8 @@ void
|
|||||||
SelectionDAGISel::FinishBasicBlock(MachineBasicBlock *BB) {
|
SelectionDAGISel::FinishBasicBlock(MachineBasicBlock *BB) {
|
||||||
|
|
||||||
DEBUG(dbgs() << "Total amount of phi nodes to update: "
|
DEBUG(dbgs() << "Total amount of phi nodes to update: "
|
||||||
<< FuncInfo->PHINodesToUpdate.size() << "\n");
|
<< FuncInfo->PHINodesToUpdate.size() << "\n";
|
||||||
DEBUG(for (unsigned i = 0, e = FuncInfo->PHINodesToUpdate.size(); i != e; ++i)
|
for (unsigned i = 0, e = FuncInfo->PHINodesToUpdate.size(); i != e; ++i)
|
||||||
dbgs() << "Node " << i << " : ("
|
dbgs() << "Node " << i << " : ("
|
||||||
<< FuncInfo->PHINodesToUpdate[i].first
|
<< FuncInfo->PHINodesToUpdate[i].first
|
||||||
<< ", " << FuncInfo->PHINodesToUpdate[i].second << ")\n");
|
<< ", " << FuncInfo->PHINodesToUpdate[i].second << ")\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user