[llvm-commits] [llvm] r53671 - in /llvm/trunk: lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp test/CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll
Duncan Sands
baldrick at free.fr
Wed Jul 16 04:36:52 PDT 2008
Author: baldrick
Date: Wed Jul 16 06:36:51 2008
New Revision: 53671
URL: http://llvm.org/viewvc/llvm-project?rev=53671&view=rev
Log:
Turn on LegalizeTypes by default.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
llvm/trunk/test/CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=53671&r1=53670&r2=53671&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Wed Jul 16 06:36:51 2008
@@ -52,7 +52,7 @@
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 @@
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();
Modified: llvm/trunk/test/CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll?rev=53671&r1=53670&r2=53671&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll (original)
+++ llvm/trunk/test/CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll Wed Jul 16 06:36:51 2008
@@ -1,6 +1,4 @@
; RUN: llvm-as < %s | llc -o -
-; XFAIL: *
-; Un-XFAIL this once LegalizeDAGTypes is turned on.
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i686-pc-linux-gnu"
More information about the llvm-commits
mailing list