summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-07-16 11:36:51 +0000
committerDuncan Sands <baldrick@free.fr>2008-07-16 11:36:51 +0000
commitc359055fa9f5c87a0839d3838dc024b290de6822 (patch)
treed75f679371084e2998bd313cdbbe02b6663e4da3 /llvm/lib/CodeGen/SelectionDAG
parentb85cc9db19abb46b4ebf1e917320093c3ac5848f (diff)
downloadbcm5719-llvm-c359055fa9f5c87a0839d3838dc024b290de6822.tar.gz
bcm5719-llvm-c359055fa9f5c87a0839d3838dc024b290de6822.zip
Turn on LegalizeTypes by default.
llvm-svn: 53671
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index bf68040c97a..6253e4631eb 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>
-EnableLegalizeTypes("enable-legalize-types", cl::Hidden);
+DisableLegalizeTypes("disable-legalize-types", cl::Hidden);
#ifndef NDEBUG
@@ -5296,14 +5296,16 @@ 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 (EnableLegalizeTypes) {// Enable this some day.
+ if (!DisableLegalizeTypes) {// Remove 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