mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Remove the unused DisableLegalizeTypes option and related code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90668 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
740266269b
commit
714efc63d4
@ -220,7 +220,7 @@ public:
|
||||
///
|
||||
/// Note that this is an involved process that may invalidate pointers into
|
||||
/// the graph.
|
||||
void Legalize(bool TypesNeedLegalizing, CodeGenOpt::Level OptLevel);
|
||||
void Legalize(CodeGenOpt::Level OptLevel);
|
||||
|
||||
/// LegalizeVectors - This transforms the SelectionDAG into a SelectionDAG
|
||||
/// that only uses vector math operations supported by the target. This is
|
||||
|
@ -3059,8 +3059,7 @@ void SelectionDAGLegalize::PromoteNode(SDNode *Node,
|
||||
|
||||
// SelectionDAG::Legalize - This is the entry point for the file.
|
||||
//
|
||||
void SelectionDAG::Legalize(bool TypesNeedLegalizing,
|
||||
CodeGenOpt::Level OptLevel) {
|
||||
void SelectionDAG::Legalize(CodeGenOpt::Level OptLevel) {
|
||||
/// run - This is the main entry point to this class.
|
||||
///
|
||||
SelectionDAGLegalize(*this, OptLevel).LegalizeDAG();
|
||||
|
@ -59,8 +59,6 @@
|
||||
#include <algorithm>
|
||||
using namespace llvm;
|
||||
|
||||
static cl::opt<bool>
|
||||
DisableLegalizeTypes("disable-legalize-types", cl::Hidden);
|
||||
static cl::opt<bool>
|
||||
EnableFastISelVerbose("fast-isel-verbose", cl::Hidden,
|
||||
cl::desc("Enable verbose messages in the \"fast\" "
|
||||
@ -529,75 +527,73 @@ void SelectionDAGISel::CodeGenAndEmitDAG() {
|
||||
|
||||
// Second step, hack on the DAG until it only uses operations and types that
|
||||
// the target supports.
|
||||
if (!DisableLegalizeTypes) {
|
||||
if (ViewLegalizeTypesDAGs) CurDAG->viewGraph("legalize-types input for " +
|
||||
BlockName);
|
||||
if (ViewLegalizeTypesDAGs) CurDAG->viewGraph("legalize-types input for " +
|
||||
BlockName);
|
||||
|
||||
bool Changed;
|
||||
bool Changed;
|
||||
if (TimePassesIsEnabled) {
|
||||
NamedRegionTimer T("Type Legalization", GroupName);
|
||||
Changed = CurDAG->LegalizeTypes();
|
||||
} else {
|
||||
Changed = CurDAG->LegalizeTypes();
|
||||
}
|
||||
|
||||
DEBUG(errs() << "Type-legalized selection DAG:\n");
|
||||
DEBUG(CurDAG->dump());
|
||||
|
||||
if (Changed) {
|
||||
if (ViewDAGCombineLT)
|
||||
CurDAG->viewGraph("dag-combine-lt input for " + BlockName);
|
||||
|
||||
// Run the DAG combiner in post-type-legalize mode.
|
||||
if (TimePassesIsEnabled) {
|
||||
NamedRegionTimer T("Type Legalization", GroupName);
|
||||
Changed = CurDAG->LegalizeTypes();
|
||||
NamedRegionTimer T("DAG Combining after legalize types", GroupName);
|
||||
CurDAG->Combine(NoIllegalTypes, *AA, OptLevel);
|
||||
} else {
|
||||
Changed = CurDAG->LegalizeTypes();
|
||||
CurDAG->Combine(NoIllegalTypes, *AA, OptLevel);
|
||||
}
|
||||
|
||||
DEBUG(errs() << "Type-legalized selection DAG:\n");
|
||||
DEBUG(errs() << "Optimized type-legalized selection DAG:\n");
|
||||
DEBUG(CurDAG->dump());
|
||||
}
|
||||
|
||||
if (Changed) {
|
||||
if (ViewDAGCombineLT)
|
||||
CurDAG->viewGraph("dag-combine-lt input for " + BlockName);
|
||||
|
||||
// Run the DAG combiner in post-type-legalize mode.
|
||||
if (TimePassesIsEnabled) {
|
||||
NamedRegionTimer T("DAG Combining after legalize types", GroupName);
|
||||
CurDAG->Combine(NoIllegalTypes, *AA, OptLevel);
|
||||
} else {
|
||||
CurDAG->Combine(NoIllegalTypes, *AA, OptLevel);
|
||||
}
|
||||
|
||||
DEBUG(errs() << "Optimized type-legalized selection DAG:\n");
|
||||
DEBUG(CurDAG->dump());
|
||||
}
|
||||
if (TimePassesIsEnabled) {
|
||||
NamedRegionTimer T("Vector Legalization", GroupName);
|
||||
Changed = CurDAG->LegalizeVectors();
|
||||
} else {
|
||||
Changed = CurDAG->LegalizeVectors();
|
||||
}
|
||||
|
||||
if (Changed) {
|
||||
if (TimePassesIsEnabled) {
|
||||
NamedRegionTimer T("Vector Legalization", GroupName);
|
||||
Changed = CurDAG->LegalizeVectors();
|
||||
NamedRegionTimer T("Type Legalization 2", GroupName);
|
||||
Changed = CurDAG->LegalizeTypes();
|
||||
} else {
|
||||
Changed = CurDAG->LegalizeVectors();
|
||||
Changed = CurDAG->LegalizeTypes();
|
||||
}
|
||||
|
||||
if (Changed) {
|
||||
if (TimePassesIsEnabled) {
|
||||
NamedRegionTimer T("Type Legalization 2", GroupName);
|
||||
Changed = CurDAG->LegalizeTypes();
|
||||
} else {
|
||||
Changed = CurDAG->LegalizeTypes();
|
||||
}
|
||||
if (ViewDAGCombineLT)
|
||||
CurDAG->viewGraph("dag-combine-lv input for " + BlockName);
|
||||
|
||||
if (ViewDAGCombineLT)
|
||||
CurDAG->viewGraph("dag-combine-lv input for " + BlockName);
|
||||
|
||||
// Run the DAG combiner in post-type-legalize mode.
|
||||
if (TimePassesIsEnabled) {
|
||||
NamedRegionTimer T("DAG Combining after legalize vectors", GroupName);
|
||||
CurDAG->Combine(NoIllegalOperations, *AA, OptLevel);
|
||||
} else {
|
||||
CurDAG->Combine(NoIllegalOperations, *AA, OptLevel);
|
||||
}
|
||||
|
||||
DEBUG(errs() << "Optimized vector-legalized selection DAG:\n");
|
||||
DEBUG(CurDAG->dump());
|
||||
// Run the DAG combiner in post-type-legalize mode.
|
||||
if (TimePassesIsEnabled) {
|
||||
NamedRegionTimer T("DAG Combining after legalize vectors", GroupName);
|
||||
CurDAG->Combine(NoIllegalOperations, *AA, OptLevel);
|
||||
} else {
|
||||
CurDAG->Combine(NoIllegalOperations, *AA, OptLevel);
|
||||
}
|
||||
|
||||
DEBUG(errs() << "Optimized vector-legalized selection DAG:\n");
|
||||
DEBUG(CurDAG->dump());
|
||||
}
|
||||
|
||||
if (ViewLegalizeDAGs) CurDAG->viewGraph("legalize input for " + BlockName);
|
||||
|
||||
if (TimePassesIsEnabled) {
|
||||
NamedRegionTimer T("DAG Legalization", GroupName);
|
||||
CurDAG->Legalize(DisableLegalizeTypes, OptLevel);
|
||||
CurDAG->Legalize(OptLevel);
|
||||
} else {
|
||||
CurDAG->Legalize(DisableLegalizeTypes, OptLevel);
|
||||
CurDAG->Legalize(OptLevel);
|
||||
}
|
||||
|
||||
DEBUG(errs() << "Legalized selection DAG:\n");
|
||||
|
Loading…
Reference in New Issue
Block a user