OSDN Git Service

Turn on LegalizeTypes, the new type legalization
authorDuncan Sands <baldrick@free.fr>
Mon, 27 Oct 2008 08:42:46 +0000 (08:42 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 27 Oct 2008 08:42:46 +0000 (08:42 +0000)
codegen infrastructure, by default.  Please report
any breakage to the mailing lists.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58232 91177308-0d34-0410-b5e6-96231b3b80d8

26 files changed:
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
test/CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll
test/CodeGen/Generic/APIntLoadStore.ll
test/CodeGen/Generic/APIntParam.ll
test/CodeGen/Generic/APIntSextParam.ll
test/CodeGen/Generic/APIntZextParam.ll
test/CodeGen/Mips/2008-06-05-Carry.ll
test/CodeGen/Mips/2008-07-03-SRet.ll
test/CodeGen/Mips/2008-07-05-ByVal.ll
test/CodeGen/Mips/2008-07-06-fadd64.ll
test/CodeGen/Mips/2008-07-07-FPExtend.ll
test/CodeGen/Mips/2008-07-07-Float2Int.ll
test/CodeGen/Mips/2008-07-07-IntDoubleConvertions.ll
test/CodeGen/Mips/2008-07-15-InternalConstant.ll
test/CodeGen/Mips/2008-07-16-SignExtInReg.ll
test/CodeGen/Mips/2008-07-22-Cstpool.ll
test/CodeGen/Mips/2008-07-23-fpcmp.ll
test/CodeGen/Mips/2008-07-29-icmp.ll
test/CodeGen/Mips/2008-07-31-fcopysign.ll
test/CodeGen/Mips/2008-08-01-AsmInline.ll
test/CodeGen/Mips/2008-08-03-fabs64.ll
test/CodeGen/Mips/2008-08-04-Bitconvert.ll
test/CodeGen/Mips/2008-08-06-Alloca.ll
test/CodeGen/Mips/2008-08-07-FPRound.ll
test/CodeGen/X86/2008-10-16-VecUnaryOp.ll
test/CodeGen/X86/2008-10-24-FlippedCompare.ll

index 98ebebe..4e05814 100644 (file)
@@ -54,7 +54,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);
 static cl::opt<bool>
 EnableFastISelVerbose("fast-isel-verbose", cl::Hidden,
           cl::desc("Enable verbose messages in the \"fast\" "
@@ -572,7 +572,7 @@ void SelectionDAGISel::CodeGenAndEmitDAG() {
   
   // 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) {
     if (ViewLegalizeTypesDAGs) CurDAG->viewGraph("legalize-types input for " +
                                                  BlockName);
 
index b0a2764..cedee6f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -o -
+; RUN: llvm-as < %s | llc -o -
 
 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"
index bb3b194..bee7c63 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types
+; RUN: llvm-as < %s | llc
 @i1_l = external global i1             ; <i1*> [#uses=1]
 @i1_s = external global i1             ; <i1*> [#uses=1]
 @i2_l = external global i2             ; <i2*> [#uses=1]
index 8ce45d5..c1a3a44 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types
+; RUN: llvm-as < %s | llc
 @i1_s = external global i1             ; <i1*> [#uses=1]
 @i2_s = external global i2             ; <i2*> [#uses=1]
 @i3_s = external global i3             ; <i3*> [#uses=1]
index fa657bb..c5927fc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types
+; RUN: llvm-as < %s | llc
 @i1_s = external global i1             ; <i1*> [#uses=1]
 @i2_s = external global i2             ; <i2*> [#uses=1]
 @i3_s = external global i3             ; <i3*> [#uses=1]
index 926e828..71d3270 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types
+; RUN: llvm-as < %s | llc
 @i1_s = external global i1             ; <i1*> [#uses=1]
 @i2_s = external global i2             ; <i2*> [#uses=1]
 @i3_s = external global i3             ; <i3*> [#uses=1]
index c2c5e5e..9cd7c80 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep subu %t | count 2
 ; RUN: grep addu %t | count 4
 
index b2813f2..53ceaf3 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips |  \
-; RUN:    grep {sw.*(\$4)} | count 3
+; RUN: llvm-as < %s | llc -march=mips | grep {sw.*(\$4)} | count 3
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-psp-elf"
index 6e14b78..2d1101a 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips |  \
-; RUN:    grep {lw.*(\$4)} | count 2
+; RUN: llvm-as < %s | llc -march=mips | grep {lw.*(\$4)} | count 2
 
 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:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-psp-elf"
index d85e1e0..95792ff 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips | \
-; RUN: grep __adddf3
+; RUN: llvm-as < %s | llc -march=mips | grep __adddf3
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-psp-elf"
index 265da73..e0e7d76 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips | \
-; RUN: grep __extendsfdf2
+; RUN: llvm-as < %s | llc -march=mips | grep __extendsfdf2
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-psp-elf"
index ccaac0e..f2f0374 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips | \
-; RUN: grep trunc.w.s | count 3
+; RUN: llvm-as < %s | llc -march=mips | grep trunc.w.s | count 3
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-psp-elf"
index bf2b4d0..ab6a9c8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep __floatsidf   %t | count 1
 ; RUN: grep __floatunsidf %t | count 1
 ; RUN: grep __fixdfsi %t | count 1
index ea0f5fe..4d218cf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t 
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep {rodata.str1.4,"aMS",@progbits}  %t | count 1
 ; RUN: grep {r.data,}  %t | count 1
 ; RUN: grep {\%hi} %t | count 2
index 872f65d..fc03bb5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep seh %t | count 1
 ; RUN: grep seb %t | count 1
 
index 770cc69..99eccf5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t 
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep {CPI\[01\]_\[01\]:} %t | count 2
 ; RUN: grep {rodata.cst4,"aM",@progbits} %t | count 1
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
index 3fcec16..7bc1f42 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep {c\\..*\\.s} %t | count 3
 ; RUN: grep {bc1\[tf\]} %t | count 3
 
index ee2b71f..5d03a19 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips | \
-; RUN: grep {b\[ne\]\[eq\]} | count 1
+; RUN: llvm-as < %s | llc -march=mips | grep {b\[ne\]\[eq\]} | count 1
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-psp-elf"
index a1f4443..de11ac7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep abs.s  %t | count 1
 ; RUN: grep neg.s %t | count 1
 
index 1bd645a..fea5730 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t 
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep mfhi  %t | count 1
 ; RUN: grep mflo  %t | count 1
 ; RUN: grep multu %t | count 1
index 4ce1b1c..8495bfe 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep {lui.*32767} %t | count 1
 ; RUN: grep {ori.*65535} %t | count 1
 
index fca3c00..f7a64c3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep mtc1 %t | count 1
 ; RUN: grep mfc1 %t | count 1
 
index aaac67e..34596ea 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips | \
-; RUN: grep {subu.*sp} | count 2
+; RUN: llvm-as < %s | llc -march=mips | grep {subu.*sp} | count 2
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-psp-elf"
index 1382f87..fd41ff1 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips | \
-; RUN: grep __truncdfsf2 | count 1
+; RUN: llvm-as < %s | llc -march=mips | grep __truncdfsf2 | count 1
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-psp-elf"
index 5a7d9a9..e1dc7b6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -enable-legalize-types
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2
 ; PR2762
 define void @foo(<4 x i32>* %p, <4 x double>* %q) {
   %n = load <4 x i32>* %p
index 8a7987d..d6ae05e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=x86 -mattr=+sse2 -o - | not grep {ucomiss\[^,\]*esp}
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -o - | not grep {ucomiss\[^,\]*esp}
 
 define void @f(float %wt) {
 entry: