aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-07-17 17:06:03 +0000
committerDuncan Sands <baldrick@free.fr>2008-07-17 17:06:03 +0000
commitf00e74f4d64385e6b2ee29887114e7c8abdf1f17 (patch)
tree6a63baee0b784b5c76a1c5194c104cac276f32a5 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parente99b255b5cd702aaac8447708b76defbc92826b2 (diff)
Turn LegalizeTypes back off again for the moment:
it is breaking Darwin bootstrap due to missing functionality. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53721 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 6253e4631e..bf68040c97 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -52,7 +52,7 @@ using namespace llvm;
static cl::opt<bool>
EnableValueProp("enable-value-prop", cl::Hidden);
static cl::opt<bool>
-DisableLegalizeTypes("disable-legalize-types", cl::Hidden);
+EnableLegalizeTypes("enable-legalize-types", cl::Hidden);
#ifndef NDEBUG
@@ -5296,16 +5296,14 @@ void SelectionDAGISel::CodeGenAndEmitDAG(SelectionDAG &DAG) {
DOUT << "Optimized lowered selection DAG:\n";
DEBUG(DAG.dump());
-
+
// Second step, hack on the DAG until it only uses operations and types that
// the target supports.
- if (!DisableLegalizeTypes) {// Remove this some day.
+ if (EnableLegalizeTypes) {// Enable this some day.
DAG.LegalizeTypes();
- DOUT << "Type legalized selection DAG:\n";
- DEBUG(DAG.dump());
// TODO: enable a dag combine pass here.
}
-
+
if (TimePassesIsEnabled) {
NamedRegionTimer T("DAG Legalization", GroupName);
DAG.Legalize();