summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commitd9256a7ceb22d62af32b83d09ff4b4ad2a996325 (patch)
treec5928a562eb3db243127702a84333923e22d9dad /llvm/lib/CodeGen
parent3a2147aa97d11ab3770693e09d598df408f24cbd (diff)
downloadbcm5719-llvm-d9256a7ceb22d62af32b83d09ff4b4ad2a996325.tar.gz
bcm5719-llvm-d9256a7ceb22d62af32b83d09ff4b4ad2a996325.zip
Turn LegalizeTypes back off again for the moment:
it is breaking Darwin bootstrap due to missing functionality. llvm-svn: 53721
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 6253e4631eb..bf68040c97a 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud