summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp10
-rw-r--r--llvm/test/CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll2
-rw-r--r--llvm/test/CodeGen/Generic/APIntLoadStore.ll1
-rw-r--r--llvm/test/CodeGen/Generic/APIntParam.ll1
-rw-r--r--llvm/test/CodeGen/Generic/APIntSextParam.ll1
-rw-r--r--llvm/test/CodeGen/Generic/APIntZextParam.ll1
6 files changed, 10 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();
diff --git a/llvm/test/CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll b/llvm/test/CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll
index cedee6ffbe0..1f4e5e19760 100644
--- a/llvm/test/CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll
+++ b/llvm/test/CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll
@@ -1,4 +1,6 @@
; 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"
diff --git a/llvm/test/CodeGen/Generic/APIntLoadStore.ll b/llvm/test/CodeGen/Generic/APIntLoadStore.ll
index bee7c632980..3541db21765 100644
--- a/llvm/test/CodeGen/Generic/APIntLoadStore.ll
+++ b/llvm/test/CodeGen/Generic/APIntLoadStore.ll
@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | llc
+; XFAIL: *
@i1_l = external global i1 ; <i1*> [#uses=1]
@i1_s = external global i1 ; <i1*> [#uses=1]
@i2_l = external global i2 ; <i2*> [#uses=1]
diff --git a/llvm/test/CodeGen/Generic/APIntParam.ll b/llvm/test/CodeGen/Generic/APIntParam.ll
index c1a3a449bcc..6d20c0c379d 100644
--- a/llvm/test/CodeGen/Generic/APIntParam.ll
+++ b/llvm/test/CodeGen/Generic/APIntParam.ll
@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | llc
+; XFAIL: *
@i1_s = external global i1 ; <i1*> [#uses=1]
@i2_s = external global i2 ; <i2*> [#uses=1]
@i3_s = external global i3 ; <i3*> [#uses=1]
diff --git a/llvm/test/CodeGen/Generic/APIntSextParam.ll b/llvm/test/CodeGen/Generic/APIntSextParam.ll
index c5927fcf732..254ca0b4244 100644
--- a/llvm/test/CodeGen/Generic/APIntSextParam.ll
+++ b/llvm/test/CodeGen/Generic/APIntSextParam.ll
@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | llc
+; XFAIL: *
@i1_s = external global i1 ; <i1*> [#uses=1]
@i2_s = external global i2 ; <i2*> [#uses=1]
@i3_s = external global i3 ; <i3*> [#uses=1]
diff --git a/llvm/test/CodeGen/Generic/APIntZextParam.ll b/llvm/test/CodeGen/Generic/APIntZextParam.ll
index 71d327063b0..92c51d9ea63 100644
--- a/llvm/test/CodeGen/Generic/APIntZextParam.ll
+++ b/llvm/test/CodeGen/Generic/APIntZextParam.ll
@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | llc
+; XFAIL: *
@i1_s = external global i1 ; <i1*> [#uses=1]
@i2_s = external global i2 ; <i2*> [#uses=1]
@i3_s = external global i3 ; <i3*> [#uses=1]
OpenPOWER on IntegriCloud